From c01a3a069abeb38ee94e46a42071d6e141d0467a Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 15 Nov 2019 13:52:21 -0500 Subject: [PATCH] fix channel thumb uploads on lbrytv --- static/app-strings.json | 8 ++++++-- ui/component/selectAsset/view.jsx | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 05d8440d8..efe32e7a1 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -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..." +} \ No newline at end of file diff --git a/ui/component/selectAsset/view.jsx b/ui/component/selectAsset/view.jsx index 1369e6386..84e3007b7 100644 --- a/ui/component/selectAsset/view.jsx +++ b/ui/component/selectAsset/view.jsx @@ -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(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