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,18 +99,19 @@ export class UpdateGroupNameDialog extends React.Component<Props, State> {
{this.renderAvatar()} {this.renderAvatar()}
<SpacerMD /> <SpacerMD />
<input {isAdmin ? (
type="text" <input
className="profile-name-input" type="text"
value={this.state.groupName} className="profile-name-input"
placeholder={window.i18n('groupNamePlaceholder')} value={this.state.groupName}
onChange={this.onGroupNameChanged} placeholder={window.i18n('groupNamePlaceholder')}
tabIndex={0} onChange={this.onGroupNameChanged}
required={true} tabIndex={0}
aria-required={true} required={true}
autoFocus={true} aria-required={true}
disabled={!isAdmin} 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