Browse Source

Merge pull request #947 from jitsi/not-allowed-error

Not allowed error
j8
yanas 8 years ago
parent
commit
76f8ca2116
5 changed files with 18 additions and 3 deletions
  1. 8
    0
      authError.html
  2. 1
    1
      close.html
  3. 7
    0
      conference.js
  4. 1
    1
      css/_redirect_page.scss
  5. 1
    1
      css/main.scss

+ 8
- 0
authError.html View File

1
+<html>
2
+<head>
3
+    <link rel="stylesheet" href="css/all.css"/>
4
+</head>
5
+<body>
6
+    <div class="redirectPageMessage">Sorry! You are not allowed to be here :(</div>
7
+</body>
8
+</html>

+ 1
- 1
close.html View File

3
     <link rel="stylesheet" href="css/all.css"/>
3
     <link rel="stylesheet" href="css/all.css"/>
4
 </head>
4
 </head>
5
 <body>
5
 <body>
6
-    <div class="closeMessage">Thank you for your feedback!</div>
6
+    <div class="redirectPageMessage">Thank you for your feedback!</div>
7
 </body>
7
 </body>
8
 </html>
8
 </html>

+ 7
- 0
conference.js View File

401
             }
401
             }
402
             break;
402
             break;
403
 
403
 
404
+        case ConferenceErrors.NOT_ALLOWED_ERROR:
405
+            {
406
+                // let's show some auth not allowed page
407
+                window.location.pathname = "authError.html";
408
+            }
409
+            break;
410
+
404
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
411
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
405
             APP.UI.notifyBridgeDown();
412
             APP.UI.notifyBridgeDown();
406
             break;
413
             break;

css/_close.scss → css/_redirect_page.scss View File

5
     background: $defaultBackground;
5
     background: $defaultBackground;
6
 }
6
 }
7
 
7
 
8
-.closeMessage {
8
+.redirectPageMessage {
9
     text-align: center;
9
     text-align: center;
10
     font-size: 36px;
10
     font-size: 36px;
11
     margin-top: 20%;
11
     margin-top: 20%;

+ 1
- 1
css/main.scss View File

42
 @import 'device_settings_dialog';
42
 @import 'device_settings_dialog';
43
 @import 'jquery.contextMenu';
43
 @import 'jquery.contextMenu';
44
 @import 'keyboard-shortcuts';
44
 @import 'keyboard-shortcuts';
45
-@import 'close';
45
+@import 'redirect_page';
46
 
46
 
47
 
47
 
48
 /* Modules END */
48
 /* Modules END */

Loading…
Cancel
Save