From 0a3f2cb879ac9c83dca3d6d675f0fac110ab3709 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Wed, 22 Apr 2015 11:25:34 +0200 Subject: [PATCH] Expose authorizing flag in scope and hide sign-in button when true. --- static/js/controllers/appcontroller.js | 5 +++++ static/partials/statusmessage.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/controllers/appcontroller.js b/static/js/controllers/appcontroller.js index 6561a82d..b8fe85eb 100644 --- a/static/js/controllers/appcontroller.js +++ b/static/js/controllers/appcontroller.js @@ -33,6 +33,7 @@ define(["jquery", "angular", "underscore"], function($, angular, _) { appData.set($scope); // User related scope data. + $scope.authorizing = false; $scope.roomsHistory = []; $scope.defaults = { displayName: null, @@ -110,6 +111,10 @@ define(["jquery", "angular", "underscore"], function($, angular, _) { } }); + appData.e.on("authorizing", function(event, authorizing) { + $scope.authorizing = !!authorizing; + }); + $scope.reset(); // Call once for bootstrap. }]; diff --git a/static/partials/statusmessage.html b/static/partials/statusmessage.html index e60cb482..2660143d 100644 --- a/static/partials/statusmessage.html +++ b/static/partials/statusmessage.html @@ -1,6 +1,6 @@ {{_("Initializing")}} - {{id|displayName}} + {{id|displayName}} {{_("Calling")}} {{dialing|displayName}} {{_("Hangup")}} {{_("In call with")}} {{peer|displayName}} {{_("Hangup")}} {{_("Conference with")}} {{peer|displayName}}{{conferencePeers|displayConference}} {{_("Hangup")}}