summary refs log tree commit diff
path: root/webclient/settings/settings.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 17:11:03 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 17:13:57 +0200
commitc3a774e414324746c484ad21d19c4be4e2167cd0 (patch)
treed363d80d11427baa964c3b065a2745d58901d3e6 /webclient/settings/settings.html
parentbetter support for call hangups (diff)
downloadsynapse-c3a774e414324746c484ad21d19c4be4e2167cd0.tar.xz
Show desktop notification state. Provide help if the user has previously denied permission to display them.
Diffstat (limited to 'webclient/settings/settings.html')
-rw-r--r--webclient/settings/settings.html25
1 files changed, 19 insertions, 6 deletions
diff --git a/webclient/settings/settings.html b/webclient/settings/settings.html
index 453a4fc35f..d06a0083fa 100644
--- a/webclient/settings/settings.html
+++ b/webclient/settings/settings.html
@@ -52,7 +52,25 @@
             </table>
         </div>
         <br/>
-
+        
+        <h3>Desktop notifications</h3>
+        <div ng-switch="settings.notifications">
+            <div ng-switch-when="granted">
+                Notifications are enabled.
+            </div>
+            <div ng-switch-when="denied">
+                You have denied permission for notifications.<br/>
+                To enable it, reset the notification setting for this web site into your browser settings.
+            </div>
+            <div ng-switch-when="default">
+                <button ng-click="requestNotifications()">Click here to enable them</button>
+            </div>
+            <div ng-switch-default="">
+                Sorry, your browser does not support notifications.
+            </div>
+        </div>
+        <br/>
+        
         <h3>Configuration</h3>
         <div>
             <div>Home server: {{ config.homeserver }} </div>
@@ -60,11 +78,6 @@
             <div>Access token: {{ config.access_token }} </div>
         </div>
         <br/>
-        
-        <div>
-            <div><button ng-click="requestNotifications()">Request notifications</button></div>
-        </div>
-        <br/>
 
         {{ feedback }}