mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
commit
aca7fc7473
|
@ -48,7 +48,7 @@ function renderChange(change: PropsForGroupUpdateType) {
|
|||
const people = isTypeWithContact(change) ? getPeople(change) : [];
|
||||
switch (change.type) {
|
||||
case 'name':
|
||||
return `${window.i18n('titleIsNow', [change.newName || ''])}.`;
|
||||
return `${window.i18n('titleIsNow', [change.newName || ''])}`;
|
||||
case 'add':
|
||||
if (!change.contacts || !change.contacts.length) {
|
||||
throw new Error('Group update add is missing contacts');
|
||||
|
|
|
@ -99,18 +99,19 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
|
|||
{this.renderAvatar()}
|
||||
<SpacerMD />
|
||||
|
||||
<input
|
||||
type="text"
|
||||
className="profile-name-input"
|
||||
value={this.state.groupName}
|
||||
placeholder={window.i18n('groupNamePlaceholder')}
|
||||
onChange={this.onGroupNameChanged}
|
||||
tabIndex={0}
|
||||
required={true}
|
||||
aria-required={true}
|
||||
autoFocus={true}
|
||||
disabled={!isAdmin}
|
||||
/>
|
||||
{isAdmin ? (
|
||||
<input
|
||||
type="text"
|
||||
className="profile-name-input"
|
||||
value={this.state.groupName}
|
||||
placeholder={window.i18n('groupNamePlaceholder')}
|
||||
onChange={this.onGroupNameChanged}
|
||||
tabIndex={0}
|
||||
required={true}
|
||||
aria-required={true}
|
||||
autoFocus={true}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
<div className="session-modal__button-group">
|
||||
<SessionButton text={cancelText} onClick={this.closeDialog} />
|
||||
|
|
Loading…
Reference in a new issue