remove useless props in button
This commit is contained in:
parent
7b28f745f7
commit
3a25a7c9e6
2 changed files with 3 additions and 3 deletions
|
@ -218,6 +218,7 @@
|
||||||
.then((newPermission) => {
|
.then((newPermission) => {
|
||||||
if (newPermission === 'granted') {
|
if (newPermission === 'granted') {
|
||||||
CookieService.putPermanent('quay.enabledDesktopNotifications', 'on');
|
CookieService.putPermanent('quay.enabledDesktopNotifications', 'on');
|
||||||
|
CookieService.putPermanent('quay.notifications.mostRecentTimestamp', new Date().getTime().toString());
|
||||||
$scope.notificationsPermissionsEnabled = true;
|
$scope.notificationsPermissionsEnabled = true;
|
||||||
} else {
|
} else {
|
||||||
$scope.notificationsPermissionsEnabled = false;
|
$scope.notificationsPermissionsEnabled = false;
|
||||||
|
|
|
@ -174,9 +174,8 @@
|
||||||
<td>Desktop Notifications:</td>
|
<td>Desktop Notifications:</td>
|
||||||
<td>
|
<td>
|
||||||
<span>Enable Desktop Notifications:
|
<span>Enable Desktop Notifications:
|
||||||
<button class=""
|
<button ng-disabled="desktopNotificationsPermissionIsDisabled()"
|
||||||
ng-disabled="desktopNotificationsPermissionIsDisabled()"
|
ng-click="toggleDesktopNotifications()"
|
||||||
ng-click="toggleDesktopNotifications($event)"
|
|
||||||
ng-model="notificationsPermissionsEnabled"
|
ng-model="notificationsPermissionsEnabled"
|
||||||
>{{ notificationsPermissionsEnabled ? 'enabled' : 'disabled' }}
|
>{{ notificationsPermissionsEnabled ? 'enabled' : 'disabled' }}
|
||||||
</button>
|
</button>
|
||||||
|
|
Reference in a new issue