瀏覽代碼

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

Not allowed error
master
yanas 8 年之前
父節點
當前提交
76f8ca2116
共有 5 個檔案被更改,包括 18 行新增3 行删除
  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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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…
取消
儲存