Updated edit list form

only show "save title" button if title has been changed
This commit is contained in:
mgabdev 2019-07-19 18:32:05 -04:00
parent 94b8ea23fd
commit 5077165275
2 changed files with 11 additions and 10 deletions

View File

@ -7,7 +7,7 @@ import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
title: { id: 'lists.edit.submit', defaultMessage: 'Change title' },
save: { id: 'lists.new.save_title', defaultMessage: 'Save' },
save: { id: 'lists.new.save_title', defaultMessage: 'Save Title' },
});
const mapStateToProps = state => ({
@ -59,13 +59,14 @@ class ListForm extends React.PureComponent {
onChange={this.handleChange}
/>
{ !disabled &&
<Button
className='new-list-form__btn'
disabled={disabled}
onClick={this.handleClick}
>
{save}
</Button>
}
</form>
);
}

View File

@ -4477,7 +4477,7 @@ noscript {
.edit-list-form {
&__btn {
margin-left: 6px;
width: 80px;
width: 112px;
}
&__input {