revert last commit fa531e9
This commit is contained in:
parent
42cc8fdb52
commit
9f154ac6b7
2 changed files with 5 additions and 7 deletions
|
@ -82,7 +82,6 @@ class FileActions extends React.PureComponent {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const name = fileInfo ? fileInfo.name : null;
|
const name = fileInfo ? fileInfo.name : null;
|
||||||
const path = fileInfo ? fileInfo.download_path : null;
|
|
||||||
const channel = fileInfo ? fileInfo.channel_name : null;
|
const channel = fileInfo ? fileInfo.channel_name : null;
|
||||||
|
|
||||||
const metadata = fileInfo ? fileInfo.metadata : null,
|
const metadata = fileInfo ? fileInfo.metadata : null,
|
||||||
|
@ -193,7 +192,7 @@ class FileActions extends React.PureComponent {
|
||||||
{claimIsMine &&
|
{claimIsMine &&
|
||||||
<DropDownMenuItem
|
<DropDownMenuItem
|
||||||
key={1}
|
key={1}
|
||||||
onClick={() => navigate("/publish", { name, channel, path })}
|
onClick={() => navigate("/publish", { name, channel })}
|
||||||
label={__("Edit claim")}
|
label={__("Edit claim")}
|
||||||
/>}
|
/>}
|
||||||
<DropDownMenuItem
|
<DropDownMenuItem
|
||||||
|
|
|
@ -48,7 +48,6 @@ class PublishForm extends React.PureComponent {
|
||||||
isFee: false,
|
isFee: false,
|
||||||
customUrl: false,
|
customUrl: false,
|
||||||
source: null,
|
source: null,
|
||||||
path: "",
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -419,13 +418,14 @@ class PublishForm extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
const { name, channel, path } = this.props.params;
|
const { name, channel } = this.props.params;
|
||||||
|
const rawName = name;
|
||||||
|
|
||||||
this.props.fetchClaimListMine();
|
this.props.fetchClaimListMine();
|
||||||
this._updateChannelList();
|
this._updateChannelList();
|
||||||
|
|
||||||
if (name && channel && path) {
|
if (name && channel) {
|
||||||
this.setState({ name, rawName: name, channel, path });
|
this.setState({ name, rawName, channel });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,6 @@ class PublishForm extends React.PureComponent {
|
||||||
label="File"
|
label="File"
|
||||||
ref="file"
|
ref="file"
|
||||||
type="file"
|
type="file"
|
||||||
defaultValue={this.state.path}
|
|
||||||
onChange={event => {
|
onChange={event => {
|
||||||
this.onFileChange(event);
|
this.onFileChange(event);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue