improve submit label logic

This commit is contained in:
btzr-io 2017-09-04 20:11:59 -06:00 committed by Jeremy Kauffman
parent a28b4b0c87
commit 7766b6db28

View file

@ -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);