mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-23 11:27:52 +00:00
add support for base64 field
This commit is contained in:
parent
747b555edb
commit
e9a0da9fda
@ -1439,7 +1439,7 @@ class WebBrowser extends LitElement {
|
|||||||
response = JSON.stringify(dataSentBack)
|
response = JSON.stringify(dataSentBack)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (!data.file && !data.data64) {
|
if (!data.file && !data.data64 && !data.base64) {
|
||||||
let myMsg1 = get("modals.mpchange22")
|
let myMsg1 = get("modals.mpchange22")
|
||||||
let myMsg2 = get("walletpage.wchange44")
|
let myMsg2 = get("walletpage.wchange44")
|
||||||
await showErrorAndWait("ACTION_FAILED", { id1: myMsg1, id2: myMsg2 })
|
await showErrorAndWait("ACTION_FAILED", { id1: myMsg1, id2: myMsg2 })
|
||||||
@ -1452,7 +1452,7 @@ class WebBrowser extends LitElement {
|
|||||||
const service = data.service
|
const service = data.service
|
||||||
const name = data.name
|
const name = data.name
|
||||||
let identifier = data.identifier
|
let identifier = data.identifier
|
||||||
let data64 = data.data64
|
let data64 = data.data64 || data.base64
|
||||||
const filename = data.filename
|
const filename = data.filename
|
||||||
const title = data.title
|
const title = data.title
|
||||||
const description = data.description
|
const description = data.description
|
||||||
@ -1665,7 +1665,7 @@ class WebBrowser extends LitElement {
|
|||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (!resource.file && !resource.data64) {
|
if (!resource.file && !resource.data64 && !resource.base64) {
|
||||||
const errorMsg = 'No data or file was submitted'
|
const errorMsg = 'No data or file was submitted'
|
||||||
failedPublishesIdentifiers.push({
|
failedPublishesIdentifiers.push({
|
||||||
reason: errorMsg,
|
reason: errorMsg,
|
||||||
@ -1676,7 +1676,7 @@ class WebBrowser extends LitElement {
|
|||||||
const service = resource.service
|
const service = resource.service
|
||||||
const name = resource.name
|
const name = resource.name
|
||||||
let identifier = resource.identifier
|
let identifier = resource.identifier
|
||||||
let data64 = resource.data64
|
let data64 = resource.data64 || resource.base64
|
||||||
const filename = resource.filename
|
const filename = resource.filename
|
||||||
const title = resource.title
|
const title = resource.title
|
||||||
const description = resource.description
|
const description = resource.description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user