diff --git a/src/views/Home.vue b/src/views/Home.vue index fa73d09..e69ec85 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -26,11 +26,7 @@ - + {{ loading ? "Carregando..." : "Nenhuma instância encontrada" }} @@ -122,7 +118,7 @@ export default { }, data: () => ({ AppStore: useAppStore(), - loading: false, + loadingInner: false, loadingDelete: false, error: false, statusMapper: statusMapper, @@ -163,17 +159,22 @@ export default { }, async getInstances() { try { - this.loading = true; + this.loadingInner = true; this.instances = await this.AppStore.reconnect(); } catch (e) { this.error = e.message?.message || e.message || e; } finally { - this.loading = false; + this.loadingInner = false; } }, }, watch: {}, computed: { + loading() { + debugger; + return this.loadingInner || this.AppStore.connecting; + }, + instances() { return this.AppStore.instances; },