Updated edit list form
only show "save title" button if title has been changed
This commit is contained in:
parent
94b8ea23fd
commit
5077165275
@ -7,7 +7,7 @@ import { defineMessages, injectIntl } from 'react-intl';
|
|||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
title: { id: 'lists.edit.submit', defaultMessage: 'Change title' },
|
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 => ({
|
const mapStateToProps = state => ({
|
||||||
@ -59,13 +59,14 @@ class ListForm extends React.PureComponent {
|
|||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button
|
{ !disabled &&
|
||||||
className='new-list-form__btn'
|
<Button
|
||||||
disabled={disabled}
|
className='new-list-form__btn'
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
>
|
>
|
||||||
{save}
|
{save}
|
||||||
</Button>
|
</Button>
|
||||||
|
}
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1477,7 +1477,7 @@ a.account__display-name {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.column,
|
.column,
|
||||||
.drawer {
|
.drawer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -4477,7 +4477,7 @@ noscript {
|
|||||||
.edit-list-form {
|
.edit-list-form {
|
||||||
&__btn {
|
&__btn {
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
width: 80px;
|
width: 112px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__input {
|
&__input {
|
||||||
|
Loading…
Reference in New Issue
Block a user