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

Minor fixes
pull/1847/head
Audric Ackermann 4 years ago committed by GitHub
commit aca7fc7473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ function renderChange(change: PropsForGroupUpdateType) {
const people = isTypeWithContact(change) ? getPeople(change) : []; const people = isTypeWithContact(change) ? getPeople(change) : [];
switch (change.type) { switch (change.type) {
case 'name': case 'name':
return `${window.i18n('titleIsNow', [change.newName || ''])}.`; return `${window.i18n('titleIsNow', [change.newName || ''])}`;
case 'add': case 'add':
if (!change.contacts || !change.contacts.length) { if (!change.contacts || !change.contacts.length) {
throw new Error('Group update add is missing contacts'); throw new Error('Group update add is missing contacts');

@ -99,6 +99,7 @@ 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 +110,8 @@ 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