Skip to content
Snippets Groups Projects
Commit 16456376 authored by Reményi Gergely's avatar Reményi Gergely
Browse files

KST-23: change when sorting button appears

parent 9cbd217c
No related branches found
No related tags found
1 merge request!2Service page rework
...@@ -81,11 +81,12 @@ ...@@ -81,11 +81,12 @@
<h5 class='base_container_header'> <h5 class='base_container_header'>
Története Története
</h5> </h5>
<button class='btn' *ngIf='currentHistoryOrderState === historyOrderState.Descending && !isLoggedIn' <div>
<button class='btn mt-auto' *ngIf='currentHistoryOrderState === historyOrderState.Descending && service.history.length >=2'
(click)='toggleHistoryOrder(historyOrderState.Ascending)'> (click)='toggleHistoryOrder(historyOrderState.Ascending)'>
</button> </button>
<button class='btn' *ngIf='currentHistoryOrderState === historyOrderState.Ascending && !isLoggedIn' <button class='btn' *ngIf='currentHistoryOrderState === historyOrderState.Ascending && service.history.length >= 2'
(click)='toggleHistoryOrder(historyOrderState.Descending)'> (click)='toggleHistoryOrder(historyOrderState.Descending)'>
</button> </button>
...@@ -94,6 +95,7 @@ ...@@ -94,6 +95,7 @@
<fa-icon [icon]='faPlusSquare'></fa-icon> <fa-icon [icon]='faPlusSquare'></fa-icon>
</button> </button>
</div> </div>
</div>
<div class='bg-light p-3 mb-3' <div class='bg-light p-3 mb-3'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment