Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove subtext in room invite dialog
Browse files Browse the repository at this point in the history
The subtext here was deemed redundant.

Part of element-hq/element-web#10619
  • Loading branch information
jryans committed Aug 29, 2019
1 parent 599fccd commit 752eb17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/RoomInvite.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export function showRoomInviteDialog(roomId) {

Modal.createTrackedDialog('Chat Invite', '', AddressPickerDialog, {
title: _t('Invite new room members'),
description: _t('Who would you like to add to this room?'),
button: _t('Send Invites'),
placeholder: _t("Email, name or Matrix ID"),
validAddressTypes,
Expand Down
11 changes: 8 additions & 3 deletions src/components/views/dialogs/AddressPickerDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,13 @@ module.exports = createReactClass({
const AddressSelector = sdk.getComponent("elements.AddressSelector");
this.scrollElement = null;

let inputLabel;
if (this.props.description) {
inputLabel = <div className="mx_AddressPickerDialog_label">
<label htmlFor="textinput">{this.props.description}</label>
</div>;
}

const query = [];
// create the invite list
if (this.state.selectedList.length > 0) {
Expand Down Expand Up @@ -640,9 +647,7 @@ module.exports = createReactClass({
return (
<BaseDialog className="mx_AddressPickerDialog" onKeyDown={this.onKeyDown}
onFinished={this.props.onFinished} title={this.props.title}>
<div className="mx_AddressPickerDialog_label">
<label htmlFor="textinput">{ this.props.description }</label>
</div>
{inputLabel}
<div className="mx_Dialog_content">
<div className="mx_AddressPickerDialog_inputContainer">{ query }</div>
{ error }
Expand Down
1 change: 0 additions & 1 deletion src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"Email, name or Matrix ID": "Email, name or Matrix ID",
"Start Chat": "Start Chat",
"Invite new room members": "Invite new room members",
"Who would you like to add to this room?": "Who would you like to add to this room?",
"Send Invites": "Send Invites",
"Failed to start chat": "Failed to start chat",
"Operation failed": "Operation failed",
Expand Down

0 comments on commit 752eb17

Please sign in to comment.