Remove subtext in room invite dialog
The subtext here was deemed redundant. Part of https://github.com/vector-im/riot-web/issues/10619
This commit is contained in:
parent
599fccd9ce
commit
752eb17893
3 changed files with 8 additions and 5 deletions
|
@ -68,7 +68,6 @@ export function showRoomInviteDialog(roomId) {
|
||||||
|
|
||||||
Modal.createTrackedDialog('Chat Invite', '', AddressPickerDialog, {
|
Modal.createTrackedDialog('Chat Invite', '', AddressPickerDialog, {
|
||||||
title: _t('Invite new room members'),
|
title: _t('Invite new room members'),
|
||||||
description: _t('Who would you like to add to this room?'),
|
|
||||||
button: _t('Send Invites'),
|
button: _t('Send Invites'),
|
||||||
placeholder: _t("Email, name or Matrix ID"),
|
placeholder: _t("Email, name or Matrix ID"),
|
||||||
validAddressTypes,
|
validAddressTypes,
|
||||||
|
|
|
@ -577,6 +577,13 @@ module.exports = createReactClass({
|
||||||
const AddressSelector = sdk.getComponent("elements.AddressSelector");
|
const AddressSelector = sdk.getComponent("elements.AddressSelector");
|
||||||
this.scrollElement = null;
|
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 = [];
|
const query = [];
|
||||||
// create the invite list
|
// create the invite list
|
||||||
if (this.state.selectedList.length > 0) {
|
if (this.state.selectedList.length > 0) {
|
||||||
|
@ -640,9 +647,7 @@ module.exports = createReactClass({
|
||||||
return (
|
return (
|
||||||
<BaseDialog className="mx_AddressPickerDialog" onKeyDown={this.onKeyDown}
|
<BaseDialog className="mx_AddressPickerDialog" onKeyDown={this.onKeyDown}
|
||||||
onFinished={this.props.onFinished} title={this.props.title}>
|
onFinished={this.props.onFinished} title={this.props.title}>
|
||||||
<div className="mx_AddressPickerDialog_label">
|
{inputLabel}
|
||||||
<label htmlFor="textinput">{ this.props.description }</label>
|
|
||||||
</div>
|
|
||||||
<div className="mx_Dialog_content">
|
<div className="mx_Dialog_content">
|
||||||
<div className="mx_AddressPickerDialog_inputContainer">{ query }</div>
|
<div className="mx_AddressPickerDialog_inputContainer">{ query }</div>
|
||||||
{ error }
|
{ error }
|
||||||
|
|
|
@ -117,7 +117,6 @@
|
||||||
"Email, name or Matrix ID": "Email, name or Matrix ID",
|
"Email, name or Matrix ID": "Email, name or Matrix ID",
|
||||||
"Start Chat": "Start Chat",
|
"Start Chat": "Start Chat",
|
||||||
"Invite new room members": "Invite new room members",
|
"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",
|
"Send Invites": "Send Invites",
|
||||||
"Failed to start chat": "Failed to start chat",
|
"Failed to start chat": "Failed to start chat",
|
||||||
"Operation failed": "Operation failed",
|
"Operation failed": "Operation failed",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue