remove useless props in button

This commit is contained in:
Sam Chow 2018-05-08 10:39:10 -04:00
parent 7b28f745f7
commit 3a25a7c9e6
2 changed files with 3 additions and 3 deletions

View file

@ -218,6 +218,7 @@
.then((newPermission) => {
if (newPermission === 'granted') {
CookieService.putPermanent('quay.enabledDesktopNotifications', 'on');
CookieService.putPermanent('quay.notifications.mostRecentTimestamp', new Date().getTime().toString());
$scope.notificationsPermissionsEnabled = true;
} else {
$scope.notificationsPermissionsEnabled = false;

View file

@ -174,9 +174,8 @@
<td>Desktop Notifications:</td>
<td>
<span>Enable Desktop Notifications:
<button class=""
ng-disabled="desktopNotificationsPermissionIsDisabled()"
ng-click="toggleDesktopNotifications($event)"
<button ng-disabled="desktopNotificationsPermissionIsDisabled()"
ng-click="toggleDesktopNotifications()"
ng-model="notificationsPermissionsEnabled"
>{{ notificationsPermissionsEnabled ? 'enabled' : 'disabled' }}
</button>