Disable dismiss-all link if there are no events
parent
ff1e7d9fac
commit
5341bd8b5a
|
@ -4,7 +4,7 @@ div.wrapper
|
||||||
h1.title {{ 'EVENTS.MY_EVENTS' | translate }}
|
h1.title {{ 'EVENTS.MY_EVENTS' | translate }}
|
||||||
a.action(
|
a.action(
|
||||||
href="",
|
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 }}
|
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()
|
tg-notifications-list()
|
||||||
|
|
Loading…
Reference in New Issue