Explorar el Código

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

Not allowed error
j8
yanas hace 8 años
padre
commit
76f8ca2116
Se han modificado 5 ficheros con 18 adiciones y 3 borrados
  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 Ver fichero

@@ -0,0 +1,8 @@
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 Ver fichero

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

+ 7
- 0
conference.js Ver fichero

@@ -401,6 +401,13 @@ class ConferenceConnector {
401 401
             }
402 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 411
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
405 412
             APP.UI.notifyBridgeDown();
406 413
             break;

css/_close.scss → css/_redirect_page.scss Ver fichero

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

+ 1
- 1
css/main.scss Ver fichero

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

Loading…
Cancelar
Guardar