diff --git a/plugins/plugins/core/q-app/q-apps.src.js b/plugins/plugins/core/q-app/q-apps.src.js index 37b502e2..7a2b0792 100644 --- a/plugins/plugins/core/q-app/q-apps.src.js +++ b/plugins/plugins/core/q-app/q-apps.src.js @@ -4,6 +4,7 @@ import { Epml } from '../../../epml.js' import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate' import { columnBodyRenderer, gridRowDetailsRenderer } from '@vaadin/grid/lit.js' import isElectron from 'is-electron' +import '@polymer/paper-spinner/paper-spinner-lite.js' registerTranslateConfig({ loader: lang => fetch(`/language/${lang}.json`).then(res => res.json()) @@ -42,7 +43,9 @@ class QApps extends LitElement { blockedResources: { type: Array }, textStatus: { type: String }, textProgress: { type: String }, - theme: { type: String, reflect: true } + theme: { type: String, reflect: true }, + hasInitiallyFetched: {type:Boolean}, + isLoading: {type: Boolean} } } @@ -369,6 +372,7 @@ class QApps extends LitElement { this.blockedNames = [] this.relayMode = null this.isLoading = false + this.hasInitiallyFetched = false this.btnDisabled = false this.searchName = '' this.searchResources = [] @@ -421,13 +425,14 @@ class QApps extends LitElement {
- ${this.pageRes == null ? html` - Loading... + ${this.isLoading ? html` +