Merge pull request #413 from lbryio/ip/thumbnail-error-part-2
Clear 'thumbnailError' when uploading new one
This commit is contained in:
commit
757e8c24ec
2 changed files with 24 additions and 8 deletions
10
dist/bundle.es.js
vendored
10
dist/bundle.es.js
vendored
|
@ -4634,7 +4634,8 @@ const doResetThumbnailStatus = () => dispatch => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: UPDATE_PUBLISH_FORM,
|
type: UPDATE_PUBLISH_FORM,
|
||||||
data: {
|
data: {
|
||||||
thumbnailPath: ''
|
thumbnailPath: '',
|
||||||
|
thumbnailError: undefined
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -4691,6 +4692,13 @@ const doUploadThumbnail = (filePath, thumbnailBlob, fsAdapter, fs, path) => disp
|
||||||
}, doError(error)));
|
}, doError(error)));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dispatch({
|
||||||
|
type: UPDATE_PUBLISH_FORM,
|
||||||
|
data: {
|
||||||
|
thumbnailError: undefined
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const doUpload = data => {
|
const doUpload = data => {
|
||||||
return fetch(SPEECH_PUBLISH, {
|
return fetch(SPEECH_PUBLISH, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
@ -21,6 +21,7 @@ export const doResetThumbnailStatus = () => (dispatch: Dispatch) => {
|
||||||
type: ACTIONS.UPDATE_PUBLISH_FORM,
|
type: ACTIONS.UPDATE_PUBLISH_FORM,
|
||||||
data: {
|
data: {
|
||||||
thumbnailPath: '',
|
thumbnailPath: '',
|
||||||
|
thumbnailError: undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -96,6 +97,13 @@ export const doUploadThumbnail = (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dispatch({
|
||||||
|
type: ACTIONS.UPDATE_PUBLISH_FORM,
|
||||||
|
data: {
|
||||||
|
thumbnailError: undefined,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const doUpload = data => {
|
const doUpload = data => {
|
||||||
return fetch(SPEECH_PUBLISH, {
|
return fetch(SPEECH_PUBLISH, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Reference in a new issue