Disable dismiss-all link if there are no events

stable
Daniel García 2018-11-27 13:33:02 +01:00 committed by Alex Hermida
parent ff1e7d9fac
commit 5341bd8b5a
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ div.wrapper
h1.title {{ 'EVENTS.MY_EVENTS' | translate }}
a.action(
href="",
ng-if="!vm.notificationsList.get(0).get('read')",
ng-if="vm.notificationsList.size && !vm.notificationsList.get(0).get('read')",
ng-click="vm.setAllAsRead()") {{ 'EVENTS.DISMISS_ALL' | translate }}
span.action.disabled(ng-if="vm.notificationsList.get(0).get('read')") {{ 'EVENTS.DISMISS_ALL' | translate }}
span.action.disabled(ng-if="!vm.notificationsList.size || vm.notificationsList.get(0).get('read')") {{ 'EVENTS.DISMISS_ALL' | translate }}
tg-notifications-list()