summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-10-30 17:16:16 +0000
committerKegan Dougal <kegan@matrix.org>2014-10-30 17:16:16 +0000
commitea6bec96d3fc6c05cd85bfd395acf697a0d8288e (patch)
tree1f37c02cdefe5bf05aa5bff091fd30f271eb423c
parentSYWEB-12: Add ability to add new state events. (diff)
downloadsynapse-ea6bec96d3fc6c05cd85bfd395acf697a0d8288e.tar.xz
SYWEB-12: UX tweaks.
-rw-r--r--webclient/room/room.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 6c0db6d7d3..19ed802f0c 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -24,6 +24,7 @@
                     <br/>
                     Set by: <span class="monospace">{{ event.user_id }}</span>
                     <br/>
+                    <span ng-show="event.required_power_level >= 0">Required power level: {{event.required_power_level}}</span>
                     <button ng-click="submit(event)" type="button" class="btn btn-success" ng-disabled="!event.content">
                         Submit
                     </button>
@@ -36,7 +37,7 @@
                 <td class="room-info-event-meta" width="30%">
                     <input ng-model="roomInfo.newEvent.type" placeholder="your.event.type" />
                     <br/>
-                    <button ng-click="submit(roomInfo.newEvent)" type="button" class="btn btn-success" ng-disabled="!roomInfo.newEvent.content">
+                    <button ng-click="submit(roomInfo.newEvent)" type="button" class="btn btn-success" ng-disabled="!roomInfo.newEvent.content || !roomInfo.newEvent.type">
                         Submit
                     </button>
                 </td>