mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Fixed bugs when publishing, introduced with the new metadata features.
This commit is contained in:
parent
dd834ece82
commit
42512bcf6e
@ -481,7 +481,7 @@ class PublishData extends LitElement {
|
|||||||
|
|
||||||
let uploadDataUrl = `/arbitrary/${this.service}/${registeredName}${urlSuffix}?${metadataQueryString}&apiKey=${this.getApiKey()}`
|
let uploadDataUrl = `/arbitrary/${this.service}/${registeredName}${urlSuffix}?${metadataQueryString}&apiKey=${this.getApiKey()}`
|
||||||
if (identifier != null && identifier.trim().length > 0) {
|
if (identifier != null && identifier.trim().length > 0) {
|
||||||
uploadDataUrl = `/arbitrary/${service}/${registeredName}/${this.identifier}${urlSuffix}?${metadataQuery}&apiKey=${this.getApiKey()}`
|
uploadDataUrl = `/arbitrary/${service}/${registeredName}/${this.identifier}${urlSuffix}?${metadataQueryString}&apiKey=${this.getApiKey()}`
|
||||||
}
|
}
|
||||||
|
|
||||||
let uploadDataRes = await parentEpml.request('apiCall', {
|
let uploadDataRes = await parentEpml.request('apiCall', {
|
||||||
@ -593,7 +593,10 @@ class PublishData extends LitElement {
|
|||||||
selectName(e) {
|
selectName(e) {
|
||||||
let name = this.shadowRoot.getElementById('registeredName')
|
let name = this.shadowRoot.getElementById('registeredName')
|
||||||
this.selectedName = (name.value)
|
this.selectedName = (name.value)
|
||||||
this.name = (name.value)
|
// Update the current name if one has been selected
|
||||||
|
if (name.length > 0) {
|
||||||
|
this.name = (name.value)
|
||||||
|
}
|
||||||
this.fetchResourceMetadata();
|
this.fetchResourceMetadata();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user