fix channel thumb uploads on lbrytv
This commit is contained in:
parent
04181c8a4a
commit
c01a3a069a
2 changed files with 9 additions and 5 deletions
|
@ -873,5 +873,9 @@
|
|||
"lbry.tv Account": "lbry.tv Account",
|
||||
"Creating a lbry.tv account will allow you to earn rewards, receive content and security updates, and optionally backup your data.": "Creating a lbry.tv account will allow you to earn rewards, receive content and security updates, and optionally backup your data.",
|
||||
"Paid content cannot be embedded": "Paid content cannot be embedded",
|
||||
"This content cannot be embedded": "This content cannot be embedded"
|
||||
}
|
||||
"This content cannot be embedded": "This content cannot be embedded",
|
||||
"Your videos are ready to be transferred.": "Your videos are ready to be transferred.",
|
||||
"Ready to transfer": "Ready to transfer",
|
||||
"Claim Channel": "Claim Channel",
|
||||
"Say something about this...": "Say something about this..."
|
||||
}
|
|
@ -24,7 +24,7 @@ function SelectAsset(props: Props) {
|
|||
const { onUpdate, assetName, currentValue, recommended } = props;
|
||||
const [assetSource, setAssetSource] = useState(SOURCE_URL);
|
||||
const [pathSelected, setPathSelected] = useState('');
|
||||
const [fileSelected, setFileSelected] = useState('');
|
||||
const [fileSelected, setFileSelected] = useState<any>(null);
|
||||
const [uploadStatus, setUploadStatus] = useState(SPEECH_READY);
|
||||
|
||||
function doUploadAsset(file) {
|
||||
|
@ -78,7 +78,7 @@ function SelectAsset(props: Props) {
|
|||
name={'assetSelector'}
|
||||
onFileChosen={file => {
|
||||
if (file.name) {
|
||||
setPathSelected(file.path);
|
||||
setPathSelected(file.path || file.name);
|
||||
setFileSelected(file);
|
||||
}
|
||||
}}
|
||||
|
@ -95,7 +95,7 @@ function SelectAsset(props: Props) {
|
|||
button={'secondary'}
|
||||
onClick={() => {
|
||||
setPathSelected('');
|
||||
setFileSelected('');
|
||||
setFileSelected(null);
|
||||
}}
|
||||
>
|
||||
Clear
|
||||
|
|
Loading…
Reference in a new issue