mirror of https://github.com/vector-im/riot-web
Wire up TagPanel's create button to the dialog
parent
65fe562cbf
commit
8feda74156
|
@ -146,6 +146,24 @@ const TagPanel = createReactClass({
|
||||||
mx_TagPanel_items_selected: itemsSelected,
|
mx_TagPanel_items_selected: itemsSelected,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let createButton = (
|
||||||
|
<ActionButton
|
||||||
|
tooltip
|
||||||
|
label={_t("Communities")}
|
||||||
|
action="toggle_my_groups"
|
||||||
|
className="mx_TagTile mx_TagTile_plus" />
|
||||||
|
);
|
||||||
|
|
||||||
|
if (SettingsStore.getValue("feature_communities_v2_prototypes")) {
|
||||||
|
createButton = (
|
||||||
|
<ActionButton
|
||||||
|
tooltip
|
||||||
|
label={_t("Create community")}
|
||||||
|
action="view_create_group"
|
||||||
|
className="mx_TagTile mx_TagTile_plus" />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return <div className={classes}>
|
return <div className={classes}>
|
||||||
<div className="mx_TagPanel_clearButton_container">
|
<div className="mx_TagPanel_clearButton_container">
|
||||||
{ clearButton }
|
{ clearButton }
|
||||||
|
@ -168,11 +186,7 @@ const TagPanel = createReactClass({
|
||||||
{ this.renderGlobalIcon() }
|
{ this.renderGlobalIcon() }
|
||||||
{ tags }
|
{ tags }
|
||||||
<div>
|
<div>
|
||||||
<ActionButton
|
{createButton}
|
||||||
tooltip
|
|
||||||
label={_t("Communities")}
|
|
||||||
action="toggle_my_groups"
|
|
||||||
className="mx_TagTile mx_TagTile_plus" />
|
|
||||||
</div>
|
</div>
|
||||||
{ provided.placeholder }
|
{ provided.placeholder }
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2091,6 +2091,7 @@
|
||||||
"Click to mute video": "Click to mute video",
|
"Click to mute video": "Click to mute video",
|
||||||
"Click to unmute audio": "Click to unmute audio",
|
"Click to unmute audio": "Click to unmute audio",
|
||||||
"Click to mute audio": "Click to mute audio",
|
"Click to mute audio": "Click to mute audio",
|
||||||
|
"Create community": "Create community",
|
||||||
"Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.",
|
"Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.",
|
||||||
"Tried to load a specific point in this room's timeline, but was unable to find it.": "Tried to load a specific point in this room's timeline, but was unable to find it.",
|
"Tried to load a specific point in this room's timeline, but was unable to find it.": "Tried to load a specific point in this room's timeline, but was unable to find it.",
|
||||||
"Failed to load timeline position": "Failed to load timeline position",
|
"Failed to load timeline position": "Failed to load timeline position",
|
||||||
|
|
Loading…
Reference in New Issue