mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
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",
|
"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.",
|
"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",
|
"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 { onUpdate, assetName, currentValue, recommended } = props;
|
||||||
const [assetSource, setAssetSource] = useState(SOURCE_URL);
|
const [assetSource, setAssetSource] = useState(SOURCE_URL);
|
||||||
const [pathSelected, setPathSelected] = useState('');
|
const [pathSelected, setPathSelected] = useState('');
|
||||||
const [fileSelected, setFileSelected] = useState('');
|
const [fileSelected, setFileSelected] = useState<any>(null);
|
||||||
const [uploadStatus, setUploadStatus] = useState(SPEECH_READY);
|
const [uploadStatus, setUploadStatus] = useState(SPEECH_READY);
|
||||||
|
|
||||||
function doUploadAsset(file) {
|
function doUploadAsset(file) {
|
||||||
|
@ -78,7 +78,7 @@ function SelectAsset(props: Props) {
|
||||||
name={'assetSelector'}
|
name={'assetSelector'}
|
||||||
onFileChosen={file => {
|
onFileChosen={file => {
|
||||||
if (file.name) {
|
if (file.name) {
|
||||||
setPathSelected(file.path);
|
setPathSelected(file.path || file.name);
|
||||||
setFileSelected(file);
|
setFileSelected(file);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
@ -95,7 +95,7 @@ function SelectAsset(props: Props) {
|
||||||
button={'secondary'}
|
button={'secondary'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPathSelected('');
|
setPathSelected('');
|
||||||
setFileSelected('');
|
setFileSelected(null);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Clear
|
Clear
|
||||||
|
|
Loading…
Add table
Reference in a new issue