improve submit label logic
This commit is contained in:
parent
a28b4b0c87
commit
7766b6db28
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,7 @@ class PublishForm extends React.PureComponent {
|
|||
name: "",
|
||||
uri: "",
|
||||
prefillDone: false,
|
||||
mode: "publish",
|
||||
});
|
||||
|
||||
return;
|
||||
|
@ -256,6 +257,7 @@ class PublishForm extends React.PureComponent {
|
|||
rawName: rawName,
|
||||
name: name,
|
||||
prefillDone: false,
|
||||
mode: "publish",
|
||||
uri,
|
||||
});
|
||||
|
||||
|
@ -385,6 +387,7 @@ class PublishForm extends React.PureComponent {
|
|||
|
||||
handleChannelChange(channelName) {
|
||||
this.setState({
|
||||
mode: "publish",
|
||||
channel: channelName,
|
||||
});
|
||||
const nameChanged = () => this.nameChanged(this.state.rawName);
|
||||
|
|
Loading…
Reference in a new issue