fix publishing
This commit is contained in:
parent
5d86b68a3e
commit
31d4d46742
3 changed files with 7 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -5640,8 +5640,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lbry-redux": {
|
"lbry-redux": {
|
||||||
"version": "github:lbryio/lbry-redux#d44cd9ca56dee784dba42c0cc13061ae75cbd46c",
|
"version": "github:lbryio/lbry-redux#7ec72a737bcd336f000c5f5085891643110298c3",
|
||||||
"from": "github:lbryio/lbry-redux#d44cd9ca56dee784dba42c0cc13061ae75cbd46c",
|
"from": "github:lbryio/lbry-redux#7ec72a737bcd336f000c5f5085891643110298c3",
|
||||||
"requires": {
|
"requires": {
|
||||||
"proxy-polyfill": "0.1.6",
|
"proxy-polyfill": "0.1.6",
|
||||||
"reselect": "^3.0.0",
|
"reselect": "^3.0.0",
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"base-64": "^0.1.0",
|
"base-64": "^0.1.0",
|
||||||
"@expo/vector-icons": "^8.1.0",
|
"@expo/vector-icons": "^8.1.0",
|
||||||
"gfycat-style-urls": "^1.0.3",
|
"gfycat-style-urls": "^1.0.3",
|
||||||
"lbry-redux": "lbryio/lbry-redux#d44cd9ca56dee784dba42c0cc13061ae75cbd46c",
|
"lbry-redux": "lbryio/lbry-redux#7ec72a737bcd336f000c5f5085891643110298c3",
|
||||||
"lbryinc": "lbryio/lbryinc#67bb3e215be3f13605c5e3f9f2b0e2fb880724cf",
|
"lbryinc": "lbryio/lbryinc#67bb3e215be3f13605c5e3f9f2b0e2fb880724cf",
|
||||||
"lodash": ">=4.17.11",
|
"lodash": ">=4.17.11",
|
||||||
"merge": ">=1.2.1",
|
"merge": ">=1.2.1",
|
||||||
|
|
|
@ -378,6 +378,8 @@ class PublishPage extends React.PureComponent {
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(publishParams);
|
||||||
|
|
||||||
updatePublishForm(publishParams);
|
updatePublishForm(publishParams);
|
||||||
this.setState({ publishStarted: true }, () => publish(this.handlePublishSuccess, this.handlePublishFailure));
|
this.setState({ publishStarted: true }, () => publish(this.handlePublishSuccess, this.handlePublishFailure));
|
||||||
};
|
};
|
||||||
|
@ -393,6 +395,7 @@ class PublishPage extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
handlePublishFailure = error => {
|
handlePublishFailure = error => {
|
||||||
|
console.log(error);
|
||||||
const { notify } = this.props;
|
const { notify } = this.props;
|
||||||
notify({ message: __('Your content could not be published at this time. Please try again.') });
|
notify({ message: __('Your content could not be published at this time. Please try again.') });
|
||||||
this.setState({ publishStarted: false });
|
this.setState({ publishStarted: false });
|
||||||
|
@ -547,7 +550,7 @@ class PublishPage extends React.PureComponent {
|
||||||
this.setState({ documentPickerOpen: false, thumbnailImagePickerOpen: false }, () => {
|
this.setState({ documentPickerOpen: false, thumbnailImagePickerOpen: false }, () => {
|
||||||
const currentMedia = {
|
const currentMedia = {
|
||||||
id: -1,
|
id: -1,
|
||||||
filePath: fileUrl,
|
filePath: evt.path,
|
||||||
duration: 0,
|
duration: 0,
|
||||||
};
|
};
|
||||||
this.setCurrentMedia(currentMedia);
|
this.setCurrentMedia(currentMedia);
|
||||||
|
|
Loading…
Add table
Reference in a new issue