diff --git a/qortal-ui-plugins/plugins/core/q-app/q-apps.src.js b/qortal-ui-plugins/plugins/core/q-app/q-apps.src.js index fd487701..3a8ea27a 100644 --- a/qortal-ui-plugins/plugins/core/q-app/q-apps.src.js +++ b/qortal-ui-plugins/plugins/core/q-app/q-apps.src.js @@ -281,10 +281,6 @@ class QApps extends LitElement { { render(html`${this.renderDownload(data.item)}`, root) }}> - - { - render(html`${this.renderOpenApp(data.item)}`, root) - }}> { render(html`${this.renderFollowUnfollowButton(data.item)}`, root); @@ -314,10 +310,6 @@ class QApps extends LitElement { { render(html`${this.renderDownload(data.item)}`, root) }}> - - { - render(html`${this.renderOpenApp(data.item)}`, root) - }}> { render(html`${this.renderFollowUnfollowButton(data.item)}`, root); @@ -362,10 +354,6 @@ class QApps extends LitElement { render(html`${this.renderDownload(data.item)}`, root) }}> - { - render(html`${this.renderOpenApp(data.item)}`, root) - }}> - { render(html`${this.renderFollowUnfollowButton(data.item)}`, root); }}> @@ -408,10 +396,6 @@ class QApps extends LitElement { render(html`${this.renderDownload(data.item)}`, root) }}> - { - render(html`${this.renderOpenApp(data.item)}`, root) - }}> - { render(html`${this.renderFollowUnfollowButton(data.item)}`, root); }}> @@ -740,7 +724,7 @@ class QApps extends LitElement { const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node] const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port const url = `${nodeUrl}/arbitrary/THUMBNAIL/${name}/qortal_avatar?async=true&apiKey=${this.getApiKey()}` - return html`` + return html`` } renderRelayModeText() { @@ -761,10 +745,10 @@ class QApps extends LitElement { } renderDownload(downObj) { - if (downObj.status.description === "Published but not yet downloaded") { + if (downObj.status.description === "Published but not yet downloaded" || downObj.status.status === "MISSING_DATA") { return html` this.downloadApp(downObj)}>` } else if (downObj.status.description === "Ready") { - return html`` + return html`` } else { return html`` } @@ -775,22 +759,13 @@ class QApps extends LitElement { await parentEpml.request('apiCall', { url: `/arbitrary/resource/status/APP/${downObj.name}?build=true&apiKey=${this.getApiKey()}` }) - this.showApps() + this.getData(0) + this.updateComplete.then(() => this.requestUpdate()) } showChunks(downObj) { } - renderOpenApp(openObj) { - if (openObj.status.description === "Published but not yet downloaded") { - return html`` - } else if (openObj.status.description === "Ready") { - return html`` - } else { - return html`` - } - } - publishApp() { window.location.href = `../qdn/publish/index.html?service=${this.service}&identifier=${this.identifier}&uploadType=zip&category=app&showName=true&showService=false&showIdentifier=false&showMetadata=true` } @@ -936,7 +911,7 @@ class QApps extends LitElement { return html`
- ${title} + ${title}
${description}