From 8b6b28f241920fb25a82b0ee271fbbce1e8f90d5 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 27 Jun 2016 15:43:50 +0200 Subject: [PATCH] Hide "call" button when in conference rooms. In conference rooms, everybody automatically calls each other, so there is no need for an explicit "Call" button. --- static/js/controllers/uicontroller.js | 4 ++++ static/partials/buddyactions.html | 4 ++-- static/partials/chatroom.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/js/controllers/uicontroller.js b/static/js/controllers/uicontroller.js index e3fd661a..89a04dee 100644 --- a/static/js/controllers/uicontroller.js +++ b/static/js/controllers/uicontroller.js @@ -690,6 +690,10 @@ define(['jquery', 'underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'web } }); + $scope.$on("room.updated", function(event, room) { + $scope.roomType = room ? room.Type : null; + }); + // Apply all layout stuff as classes to our element. $scope.$watch("layout", (function() { var makeName = function(prefix, n) { diff --git a/static/partials/buddyactions.html b/static/partials/buddyactions.html index b3898e2b..d21dc5c9 100644 --- a/static/partials/buddyactions.html +++ b/static/partials/buddyactions.html @@ -1,7 +1,7 @@
- +
@@ -12,7 +12,7 @@
{{s.Status.displayName|displayNameForSession:s.Id}}, {{s.Status.message}}
- +
diff --git a/static/partials/chatroom.html b/static/partials/chatroom.html index 49d73b2d..6f59622b 100644 --- a/static/partials/chatroom.html +++ b/static/partials/chatroom.html @@ -2,7 +2,7 @@
{{settings.title}} {{id|displayName}}
- +