fix: thumbnail upload
This commit is contained in:
parent
b6af10cf2c
commit
cad067ad95
2 changed files with 4 additions and 2 deletions
|
@ -2,11 +2,12 @@ import { connect } from 'react-redux';
|
|||
import { doHideModal } from 'redux/actions/app';
|
||||
import { doToast, doUploadThumbnail } from 'lbry-redux';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import ModalAutoGenerateThumbnail from './view';
|
||||
|
||||
const perform = dispatch => ({
|
||||
closeModal: () => dispatch(doHideModal()),
|
||||
upload: buffer => dispatch(doUploadThumbnail(null, buffer, null, fs)),
|
||||
upload: buffer => dispatch(doUploadThumbnail(null, buffer, null, fs, path)),
|
||||
showToast: options => dispatch(doToast(options)),
|
||||
});
|
||||
|
||||
|
|
|
@ -2,11 +2,12 @@ import { connect } from 'react-redux';
|
|||
import { doHideModal } from 'redux/actions/app';
|
||||
import { doUploadThumbnail, doUpdatePublishForm } from 'lbry-redux';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import ModalConfirmThumbnailUpload from './view';
|
||||
|
||||
const perform = dispatch => ({
|
||||
closeModal: () => dispatch(doHideModal()),
|
||||
upload: path => dispatch(doUploadThumbnail(path, null, null, fs)),
|
||||
upload: filePath => dispatch(doUploadThumbnail(filePath, null, null, fs, path)),
|
||||
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue