don't display the name input box for public groups as they can't be modified atm

pull/1838/head
Brice-W 4 years ago
parent 7965b4e44a
commit 9d7722fc7d

@ -99,18 +99,21 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
{this.renderAvatar()} {this.renderAvatar()}
<SpacerMD /> <SpacerMD />
<input {isAdmin ? (
type="text" <>
className="profile-name-input" <input
value={this.state.groupName} type="text"
placeholder={window.i18n('groupNamePlaceholder')} className="profile-name-input"
onChange={this.onGroupNameChanged} value={this.state.groupName}
tabIndex={0} placeholder={window.i18n('groupNamePlaceholder')}
required={true} onChange={this.onGroupNameChanged}
aria-required={true} tabIndex={0}
autoFocus={true} required={true}
disabled={!isAdmin} aria-required={true}
/> autoFocus={true}
/>
</>
) : null}
<div className="session-modal__button-group"> <div className="session-modal__button-group">
<SessionButton text={cancelText} onClick={this.closeDialog} /> <SessionButton text={cancelText} onClick={this.closeDialog} />

Loading…
Cancel
Save