From 80416fe583a4a0a7ee9091e468b9d18f336e390f Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 22 Mar 2016 12:51:11 +0000 Subject: [PATCH 1/2] prettify tag ui --- src/components/views/rooms/RoomSettings.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index 74b326e987..80f927c89a 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -471,9 +471,8 @@ module.exports = React.createClass({ var tagsSection =
- Tagged as: { canSetTag ? - tags.map(function(tag, i) { + ("Tagged as: " + tags.map(function(tag, i) { return (); - }) : (self.state.tags && self.state.tags.join) ? self.state.tags.join(", ") : "None" + })) : (self.state.tags && self.state.tags.join) ? ("Tagged as: " +self.state.tags.join(", ")) : "" }
From 385e1ca1fb4b14d96bd540032c5d832acba53ae4 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 22 Mar 2016 12:54:08 +0000 Subject: [PATCH 2/2] only let people add aliases if they canSeetAliases --- .../views/room_settings/AliasSettings.js | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/views/room_settings/AliasSettings.js b/src/components/views/room_settings/AliasSettings.js index 19e18fed48..34b6083c30 100644 --- a/src/components/views/room_settings/AliasSettings.js +++ b/src/components/views/room_settings/AliasSettings.js @@ -289,19 +289,21 @@ module.exports = React.createClass({ ); })} -
- -
- Add -
-
+ { this.props.canSetAliases ? +
+ +
+ Add +
+
: "" + } { remote_aliases_section }