diff --git a/extensions/arc/deployment/src/main/resources/dev-ui/qwc-arc-fired-events.js b/extensions/arc/deployment/src/main/resources/dev-ui/qwc-arc-fired-events.js index 64fdf4ccd1328..708cf0bc7502a 100644 --- a/extensions/arc/deployment/src/main/resources/dev-ui/qwc-arc-fired-events.js +++ b/extensions/arc/deployment/src/main/resources/dev-ui/qwc-arc-fired-events.js @@ -1,5 +1,4 @@ import { LitElement, html, css} from 'lit'; -import { until } from 'lit/directives/until.js'; import { JsonRpc } from 'jsonrpc'; import '@vaadin/grid'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; @@ -54,12 +53,15 @@ export class QwcArcFiredEvents extends LitElement { } render() { - return html`${until(this._renderFiredEvents(), html`Loading ArC fired event...`)}`; + if(this._firedEvents){ + return this._renderFiredEvents(); + } else { + return html`Loading ArC fired event...`; + } } _renderFiredEvents(){ - if(this._firedEvents){ - return html` `)} `; - } } _renderEntityTypesTable(pu) { diff --git a/extensions/kubernetes/openshift/deployment/src/main/resources/dev-ui/qwc-openshift-deployment.js b/extensions/kubernetes/openshift/deployment/src/main/resources/dev-ui/qwc-openshift-deployment.js index 43d58856e0c71..f956f3fc569eb 100644 --- a/extensions/kubernetes/openshift/deployment/src/main/resources/dev-ui/qwc-openshift-deployment.js +++ b/extensions/kubernetes/openshift/deployment/src/main/resources/dev-ui/qwc-openshift-deployment.js @@ -2,7 +2,6 @@ import {LitElement, html, css, render} from 'lit'; import {JsonRpc} from 'jsonrpc'; import '@vaadin/icon'; import '@vaadin/button'; -import {until} from 'lit/directives/until.js'; import '@vaadin/grid'; import '@vaadin/grid/vaadin-grid-sort-column.js'; import {builderTypes} from 'build-time-data'; @@ -68,10 +67,6 @@ export class QwcOpenshiftDeployment extends LitElement { * @returns {*} */ render() { - return html`${until(this._renderForm(), html`Loading...`)}`; - } - - _renderForm() { const _builders = []; let _defaultBuilder = ""; if (this.builders) { diff --git a/extensions/liquibase/deployment/src/main/resources/dev-ui/qwc-liquibase-datasources.js b/extensions/liquibase/deployment/src/main/resources/dev-ui/qwc-liquibase-datasources.js index 5fb063785b80c..85b9e89405879 100644 --- a/extensions/liquibase/deployment/src/main/resources/dev-ui/qwc-liquibase-datasources.js +++ b/extensions/liquibase/deployment/src/main/resources/dev-ui/qwc-liquibase-datasources.js @@ -11,7 +11,6 @@ import '@vaadin/checkbox'; import '@vaadin/grid'; import '@vaadin/grid/vaadin-grid-sort-column.js'; import 'qui-alert'; -import { until } from 'lit/directives/until.js'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; export class QwcLiquibaseDatasources extends LitElement { @@ -54,12 +53,15 @@ export class QwcLiquibaseDatasources extends LitElement { } render() { - return html`${until(this._renderDataSourceTable(), html`Loading datasources...`)}`; + if (this._factories) { + return this._renderDataSourceTable(); + } else { + return html`Loading datasources...`; + } } _renderDataSourceTable() { - if (this._factories) { - return html` + return html` ${this._message} This will drop all objects (tables, views, procedures, triggers, ...) in the configured schema. Do you want to continue? `; - } } _actionRenderer(ds) { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/resources/dev-ui/qwc-rest-client-clients.js b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/resources/dev-ui/qwc-rest-client-clients.js index 5e914d2a2be3a..27f684bc8000e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/resources/dev-ui/qwc-rest-client-clients.js +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/resources/dev-ui/qwc-rest-client-clients.js @@ -3,7 +3,6 @@ import { JsonRpc } from 'jsonrpc'; import '@vaadin/icon'; import '@vaadin/progress-bar'; import '@vaadin/checkbox'; -import { until } from 'lit/directives/until.js'; import '@vaadin/grid'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; import '@vaadin/grid/vaadin-grid-sort-column.js'; @@ -45,14 +44,17 @@ export class QwcRestClientClients extends LitElement { * @returns {*} */ render() { - return html`${until(this._renderClientsTable(), html`Loading REST Clients...`)}`; + if (this._clients) { + return this._renderClientsTable(); + } else { + return html`Loading REST Clients...`; + } } // View / Templates _renderClientsTable() { - if (this._clients) { - return html` + return html` `; - } } _clientInterfaceRenderer(client){ diff --git a/extensions/scheduler/deployment/src/main/resources/dev-ui/qwc-scheduler-scheduled-methods.js b/extensions/scheduler/deployment/src/main/resources/dev-ui/qwc-scheduler-scheduled-methods.js index da36b6f3f4e50..b0a93f49fc3b5 100644 --- a/extensions/scheduler/deployment/src/main/resources/dev-ui/qwc-scheduler-scheduled-methods.js +++ b/extensions/scheduler/deployment/src/main/resources/dev-ui/qwc-scheduler-scheduled-methods.js @@ -1,6 +1,5 @@ import { LitElement, html, css} from 'lit'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; -import { until } from 'lit/directives/until.js'; import { notifier } from 'notifier'; import { JsonRpc } from 'jsonrpc'; import '@vaadin/grid'; @@ -89,35 +88,38 @@ export class QwcSchedulerScheduledMethods extends LitElement { } render() { - return html`${until(this._renderScheduledMethods(), html`Loading scheduled methods...`)}`; + if (this._scheduledMethods){ + return this._renderScheduledMethods(); + } else { + return html`Loading scheduled methods...`; + } } _renderScheduledMethods(){ - if (this._scheduledMethods){ - let schedulerButton; - if (this._schedulerRunning) { - schedulerButton = html` this._pauseScheduler()}> + let schedulerButton; + if (this._schedulerRunning) { + schedulerButton = html` this._pauseScheduler()}> Pause scheduler`; - } else { - schedulerButton = html` this._resumeScheduler()}> + } else { + schedulerButton = html` this._resumeScheduler()}> Resume scheduler`; - } - - const searchBox = html` + } + + const searchBox = html` this._matchesTerm(method, searchTerm)); + }}" > ` - - return html` + + return html`
${searchBox} ${schedulerButton} @@ -135,7 +137,6 @@ export class QwcSchedulerScheduledMethods extends LitElement { `; - } } _scheduleRenderer(scheduledMethod) { diff --git a/extensions/smallrye-fault-tolerance/deployment/src/main/resources/dev-ui/qwc-fault-tolerance-methods.js b/extensions/smallrye-fault-tolerance/deployment/src/main/resources/dev-ui/qwc-fault-tolerance-methods.js index 2ea5e05e9c107..30dfbb9ab9cf9 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/main/resources/dev-ui/qwc-fault-tolerance-methods.js +++ b/extensions/smallrye-fault-tolerance/deployment/src/main/resources/dev-ui/qwc-fault-tolerance-methods.js @@ -1,5 +1,4 @@ import {css, html, LitElement} from 'lit'; -import {until} from 'lit/directives/until.js'; import {JsonRpc} from 'jsonrpc'; import '@vaadin/grid'; import {columnBodyRenderer} from '@vaadin/grid/lit.js'; @@ -29,12 +28,15 @@ export class QwcFaultToleranceMethods extends LitElement { } render() { - return html`${until(this._renderGuardedMethods(), html`Loading guarded methods...`)}`; + if (this._guardedMethods) { + return this._renderGuardedMethods(); + } else { + return html`Loading guarded methods...`; + } } _renderGuardedMethods() { - if (this._guardedMethods) { - return html` + return html` `; - } } _renderBeanClass(guardedMethod) { diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/resources/dev-ui/qwc-smallrye-reactive-messaging-channels.js b/extensions/smallrye-reactive-messaging/deployment/src/main/resources/dev-ui/qwc-smallrye-reactive-messaging-channels.js index 2f3afc6022f1b..e2cef7692aff2 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/resources/dev-ui/qwc-smallrye-reactive-messaging-channels.js +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/resources/dev-ui/qwc-smallrye-reactive-messaging-channels.js @@ -2,7 +2,6 @@ import { LitElement, html, css} from 'lit'; import { JsonRpc } from 'jsonrpc'; import '@vaadin/icon'; import '@vaadin/button'; -import { until } from 'lit/directives/until.js'; import '@vaadin/grid'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; import '@vaadin/grid/vaadin-grid-sort-column.js'; @@ -46,12 +45,15 @@ export class QwcSmallryeReactiveMessagingChannels extends LitElement { * @returns {*} */ render() { - return html`${until(this._renderChannelTable(), html`Loading channels...`)}`; + if (this._channels) { + return this._renderChannelTable(); + } else { + return html`Loading channels...`; + } } _renderChannelTable() { - if (this._channels) { - return html` + return html` `; - } } _channelNameRenderer(channel) { diff --git a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js index 114c84c75e924..36cc482fe1e84 100644 --- a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js +++ b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-configuration.js @@ -1,7 +1,6 @@ import { LitElement, html, css } from 'lit'; import { JsonRpc } from 'jsonrpc'; import { RouterController } from 'router-controller'; -import { until } from 'lit/directives/until.js'; import '@vaadin/grid'; import 'qui/qui-alert.js'; import { columnBodyRenderer } from '@vaadin/grid/lit.js'; @@ -106,7 +105,11 @@ export class QwcConfiguration extends observeState(LitElement) { } render() { - return html`${until(this._render(), html`Loading configuration properties...`)}`; + if (this._filtered && this._values) { + return this._render(); + } else { + return html`Loading configuration properties...`; + } } _match(value, term) { @@ -138,8 +141,7 @@ export class QwcConfiguration extends observeState(LitElement) { } _render() { - if (this._filtered && this._values) { - return html`
+ return html`
${this._renderGrid()}
`; - } } _renderGrid(){