Browse Source

Fix/workaround for name selection bug when publishing data

qdn-metadata
CalDescent 3 years ago
parent
commit
d1621e7660
  1. 3
      qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js

3
qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js

@ -102,6 +102,7 @@ class PublishData extends LitElement {
<!-- TODO: adapt this dropdown to list all names on the account. Right now it's hardcoded to a single name --> <!-- TODO: adapt this dropdown to list all names on the account. Right now it's hardcoded to a single name -->
<p style="display: ${this.showName ? 'block' : 'none'}"> <p style="display: ${this.showName ? 'block' : 'none'}">
<mwc-select id="registeredName" label="Select Name" index="0" @selected=${(e) => this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;"> <mwc-select id="registeredName" label="Select Name" index="0" @selected=${(e) => this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;">
<mwc-list-item selected value=""></mwc-list-item>
<mwc-list-item value="${this.registeredName}">${this.registeredName}</mwc-list-item> <mwc-list-item value="${this.registeredName}">${this.registeredName}</mwc-list-item>
</mwc-select> </mwc-select>
</p> </p>
@ -497,7 +498,7 @@ class PublishData extends LitElement {
} }
selectName(e) { selectName(e) {
const name = this.shadowRoot.getElementById('registeredName').innerHTML const name = this.shadowRoot.getElementById('registeredName').value
this.selectedName = name this.selectedName = name
} }

Loading…
Cancel
Save