Add button to enable desktop notifications
This commit is contained in:
parent
e80c56e441
commit
2d3583fb44
3 changed files with 96 additions and 0 deletions
|
@ -170,6 +170,23 @@
|
|||
<a class="co-modify-link" ng-click="showChangeAccount()">Individual account</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Desktop Notifications:</td>
|
||||
<td>
|
||||
<span>Enable Desktop Notifications:
|
||||
<button class=""
|
||||
ng-disabled="desktopNotificationsPermissionIsDisabled()"
|
||||
ng-click="toggleDesktopNotifications($event)"
|
||||
ng-model="notificationsPermissionsEnabled"
|
||||
>{{ notificationsPermissionsEnabled ? 'enabled' : 'disabled' }}
|
||||
</button>
|
||||
</span>
|
||||
<span class="help-text"
|
||||
ng-if="desktopNotificationsPermissionIsDisabled()"
|
||||
>Note: Desktop notifications have been disabled in your browser.
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue