Browse Source

Only show welcome when in status waiting.

pull/12/head
Simon Eisenmann 11 years ago
parent
commit
ad9af7f8fa
  1. 6
      static/js/directives/page.js
  2. 2
      static/partials/roombar.html

6
static/js/directives/page.js

@ -42,8 +42,12 @@ define(['text!partials/page.html', 'text!partials/page/welcome.html'], function(
scope.refresh(); scope.refresh();
}); });
scope.$watch("status", function(event) {
scope.refresh();
});
scope.refresh = function() { scope.refresh = function() {
if (scope.room) { if (scope.room || scope.status !== "waiting") {
scope.page = null; scope.page = null;
} else { } else {
scope.page = "page/welcome.html"; scope.page = "page/welcome.html";

2
static/partials/roombar.html

@ -1,5 +1,5 @@
<div class="roombar form-horizontal" ng-class="{notvisible: hideRoomBar}"> <div class="roombar form-horizontal" ng-class="{notvisible: hideRoomBar}">
<a class="roombarbutton" ng-model="hideRoomBar" btn-checkbox btn-checkbox-true="0" btn-checkbox-false="1" title="{{_('Change room')}}"><i class="fa fa-th"></i></a> <a class="roombarbutton" ng-model="hideRoomBar" btn-checkbox btn-checkbox-true="0" btn-checkbox-false="1" title="{{_('Change room')}}"><i class="fa fa-th-list"></i></a>
<form name="roombarform" class="roombarcontent form-group"> <form name="roombarform" class="roombarcontent form-group">
<label class="pull-left control-label hidden-xs">{{_('Room')}}</label> <label class="pull-left control-label hidden-xs">{{_('Room')}}</label>
<div class="pull-left"> <div class="pull-left">

Loading…
Cancel
Save