mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 06:43:42 +01:00
[Glitch] Disable list title validation button when list title is empty
Port 089c641020
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
e50554391a
commit
8b57d704dc
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
value: state.getIn(['listEditor', 'title']),
|
value: state.getIn(['listEditor', 'title']),
|
||||||
disabled: !state.getIn(['listEditor', 'isChanged']),
|
disabled: !state.getIn(['listEditor', 'isChanged']) || !state.getIn(['listEditor', 'title']),
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
|
|
@ -66,7 +66,7 @@ export default class NewListForm extends React.PureComponent {
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<IconButton
|
<IconButton
|
||||||
disabled={disabled}
|
disabled={disabled || !value}
|
||||||
icon='plus'
|
icon='plus'
|
||||||
title={title}
|
title={title}
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
|
|
Loading…
Reference in a new issue