Merge pull request #1838 from Brice-W/minor-fixes

Minor fixes
This commit is contained in:
Audric Ackermann 2021-08-08 17:52:32 -07:00 committed by GitHub
commit aca7fc7473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 13 deletions

View file

@ -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');

View file

@ -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} />