Browse Source

Revert as core is fixed

pull/219/head
AlphaX-Projects 11 months ago
parent
commit
66c270163c
  1. 4
      plugins/plugins/core/q-app/q-apps.src.js
  2. 13
      plugins/plugins/core/qdn/websites.src.js

4
plugins/plugins/core/q-app/q-apps.src.js

@ -910,14 +910,12 @@ class QApps extends LitElement {
}
renderDownload(downObj) {
if (downObj.status != null) {
if (downObj.status.description === "Published but not yet downloaded" || downObj.status.status === "MISSING_DATA") {
return html`<mwc-button ?disabled="${this.btnDisabled}" dense unelevated label="${translate("appspage.schange36")}" icon="download" @click=${() => this.downloadApp(downObj)}></mwc-button>`
} else if (downObj.status.description === "Ready" || downObj.status.status === "DOWNLOADED") {
return html`<a class="visitSite" href="../qdn/browser/index.html?name=${downObj.name}&service=${this.service}"><mwc-button class="green" dense unelevated label="${translate("appspage.schange39")}" icon="open_in_browser"></mwc-button></a>`
}
} else {
return html`<mwc-button ?disabled="${this.btnDisabled}" dense unelevated label="${translate("appspage.schange36")}" icon="download" @click=${() => this.downloadApp(downObj)}></mwc-button>`
return html``
}
}

13
plugins/plugins/core/qdn/websites.src.js

@ -1024,17 +1024,8 @@ class Websites extends LitElement {
}
renderPublishedBy(websiteObj) {
if (websiteObj.status != null) {
return html`
<div class="resourceRegisteredName">${websiteObj.name}</div>
<div class="resourceStatus">${translate("websitespage.schange28")}: <span title="${websiteObj.status.description}">${websiteObj.status.title}</span></div>
`
} else {
return html`
<div class="resourceRegisteredName">${websiteObj.name}</div>
<div class="resourceStatus">${translate("websitespage.schange28")}: <span title="Published but not yet downloaded">Published</span></div>
`
}
return html`<div class="resourceRegisteredName">${websiteObj.name}</div>
<div class="resourceStatus">${translate("websitespage.schange28")}: <span title="${websiteObj.status.description}">${websiteObj.status.title}</span></div>`
}
renderSize(websiteObj) {

Loading…
Cancel
Save