Browse Source

qdn publish add name,service, identifier modal

pull/145/head
Phillip 2 years ago
parent
commit
19076dbdc6
  1. 5
      qortal-ui-core/language/us.json
  2. 10
      qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

5
qortal-ui-core/language/us.json

@ -627,7 +627,10 @@
"bchange26": "Always authenticate automatically", "bchange26": "Always authenticate automatically",
"bchange27": "Reject", "bchange27": "Reject",
"bchange28": "Accept", "bchange28": "Accept",
"bchange29": "Instant publish (requires 0.001 QORT fee)" "bchange29": "Instant publish (requires 0.001 QORT fee)",
"bchange30": "Service",
"bchange31": "Name",
"bchange32": "Identifier"
}, },
"datapage": { "datapage": {
"dchange1": "Data Management", "dchange1": "Data Management",

10
qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

@ -557,7 +557,12 @@ class WebBrowser extends LitElement {
identifier = 'default'; identifier = 'default';
} }
const res2 = await showModalAndWait( const res2 = await showModalAndWait(
actions.PUBLISH_QDN_RESOURCE actions.PUBLISH_QDN_RESOURCE,
{
name,
identifier,
service
}
); );
if (res2.action === 'accept') { if (res2.action === 'accept') {
const worker = new WebWorker(); const worker = new WebWorker();
@ -1577,6 +1582,9 @@ async function showModalAndWait(type, data) {
` : ''} ` : ''}
${type === actions.PUBLISH_QDN_RESOURCE ? `<div class="modal-subcontainer"> ${type === actions.PUBLISH_QDN_RESOURCE ? `<div class="modal-subcontainer">
<p class="modal-paragraph">${get("browserpage.bchange19")}</p> <p class="modal-paragraph">${get("browserpage.bchange19")}</p>
<p style="font-size: 16px;overflow-wrap: anywhere;" class="modal-paragraph"><span style="font-weight: bold">${get("browserpage.bchange30")}:</span> ${data.service}</p>
<p style="font-size: 16px;overflow-wrap: anywhere;" class="modal-paragraph"><span style="font-weight: bold">${get("browserpage.bchange31")}:</span> ${data.name}</p>
<p style="font-size: 16px;overflow-wrap: anywhere;" class="modal-paragraph"><span style="font-weight: bold">${get("browserpage.bchange32")}:</span> ${data.identifier}</p>
<div class="checkbox-row"> <div class="checkbox-row">
<label for="isWithFee" id="isWithFeeLabel"> <label for="isWithFee" id="isWithFeeLabel">
${get('browserpage.bchange29')} ${get('browserpage.bchange29')}

Loading…
Cancel
Save