Browse Source

Merge pull request #145 from PhillipLangMartinez/q-apps

qdn publish add name,service, identifier modal
q-apps
CalDescent 2 years ago committed by GitHub
parent
commit
988d6eea68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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",
"bchange27": "Reject",
"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": {
"dchange1": "Data Management",

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

@ -557,7 +557,12 @@ class WebBrowser extends LitElement {
identifier = 'default';
}
const res2 = await showModalAndWait(
actions.PUBLISH_QDN_RESOURCE
actions.PUBLISH_QDN_RESOURCE,
{
name,
identifier,
service
}
);
if (res2.action === 'accept') {
const worker = new WebWorker();
@ -1577,6 +1582,9 @@ async function showModalAndWait(type, data) {
` : ''}
${type === actions.PUBLISH_QDN_RESOURCE ? `<div class="modal-subcontainer">
<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">
<label for="isWithFee" id="isWithFeeLabel">
${get('browserpage.bchange29')}

Loading…
Cancel
Save