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,6 +99,8 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
{this.renderAvatar()} {this.renderAvatar()}
<SpacerMD /> <SpacerMD />
{isAdmin ? (
<>
<input <input
type="text" type="text"
className="profile-name-input" className="profile-name-input"
@ -109,8 +111,9 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
required={true} required={true}
aria-required={true} aria-required={true}
autoFocus={true} autoFocus={true}
disabled={!isAdmin}
/> />
</>
) : 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