Add button to enable desktop notifications

This commit is contained in:
Sam Chow 2018-05-03 11:46:02 -04:00
parent e80c56e441
commit 2d3583fb44
3 changed files with 96 additions and 0 deletions

View file

@ -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>