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: "",
|
name: "",
|
||||||
uri: "",
|
uri: "",
|
||||||
prefillDone: false,
|
prefillDone: false,
|
||||||
|
mode: "publish",
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -256,6 +257,7 @@ class PublishForm extends React.PureComponent {
|
||||||
rawName: rawName,
|
rawName: rawName,
|
||||||
name: name,
|
name: name,
|
||||||
prefillDone: false,
|
prefillDone: false,
|
||||||
|
mode: "publish",
|
||||||
uri,
|
uri,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -385,6 +387,7 @@ class PublishForm extends React.PureComponent {
|
||||||
|
|
||||||
handleChannelChange(channelName) {
|
handleChannelChange(channelName) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
mode: "publish",
|
||||||
channel: channelName,
|
channel: channelName,
|
||||||
});
|
});
|
||||||
const nameChanged = () => this.nameChanged(this.state.rawName);
|
const nameChanged = () => this.nameChanged(this.state.rawName);
|
||||||
|
|
Loading…
Reference in a new issue