From 57003be3a3f990d8eea97d87aa711a983d019e54 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 27 Sep 2016 16:49:23 -0500 Subject: [PATCH 1/2] Renames the style from close to redirect page. --- close.html | 2 +- css/{_close.scss => _redirect_page.scss} | 2 +- css/main.scss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename css/{_close.scss => _redirect_page.scss} (88%) diff --git a/close.html b/close.html index ce1b54158..ec4302df9 100644 --- a/close.html +++ b/close.html @@ -3,6 +3,6 @@ -
Thank you for your feedback!
+
Thank you for your feedback!
\ No newline at end of file diff --git a/css/_close.scss b/css/_redirect_page.scss similarity index 88% rename from css/_close.scss rename to css/_redirect_page.scss index 6183f3ecc..5408762da 100644 --- a/css/_close.scss +++ b/css/_redirect_page.scss @@ -5,7 +5,7 @@ html, body { background: $defaultBackground; } -.closeMessage { +.redirectPageMessage { text-align: center; font-size: 36px; margin-top: 20%; diff --git a/css/main.scss b/css/main.scss index 132102468..d1b1e9227 100644 --- a/css/main.scss +++ b/css/main.scss @@ -42,7 +42,7 @@ @import 'device_settings_dialog'; @import 'jquery.contextMenu'; @import 'keyboard-shortcuts'; -@import 'close'; +@import 'redirect_page'; /* Modules END */ \ No newline at end of file From 1e54111aadf3d2542aaa34b662288e7e1406dd4e Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 27 Sep 2016 17:26:38 -0500 Subject: [PATCH 2/2] Adds authentication error page. When we receive a conference failed event with reason not allowed we show that page. --- authError.html | 8 ++++++++ conference.js | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 authError.html diff --git a/authError.html b/authError.html new file mode 100644 index 000000000..1c3b27b45 --- /dev/null +++ b/authError.html @@ -0,0 +1,8 @@ + + + + + +
Sorry! You are not allowed to be here :(
+ + \ No newline at end of file diff --git a/conference.js b/conference.js index ed346eca2..758af7b41 100644 --- a/conference.js +++ b/conference.js @@ -401,6 +401,13 @@ class ConferenceConnector { } break; + case ConferenceErrors.NOT_ALLOWED_ERROR: + { + // let's show some auth not allowed page + window.location.pathname = "authError.html"; + } + break; + case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE: APP.UI.notifyBridgeDown(); break;