From 2dcdb6ec210ce7a594030e74dc34f9146ab8a2b8 Mon Sep 17 00:00:00 2001 From: felix Date: Sun, 19 Oct 2025 11:39:20 +0200 Subject: [PATCH] move simple view settings back to modal --- ui/app/components/Simple.vue | 28 +++++++++++++--------------- ui/app/layouts/default.vue | 17 ++++++++++++++++- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/ui/app/components/Simple.vue b/ui/app/components/Simple.vue index 41a5c2ce..edcd0399 100644 --- a/ui/app/components/Simple.vue +++ b/ui/app/components/Simple.vue @@ -5,11 +5,9 @@
@@ -544,17 +542,17 @@ const showMessage = (item: StoreItem) => { return (item.msg?.length || 0) > 0 } - -const showSettings = async (_: MouseEvent, callback: (() => void) | null = null) => { - - const simpleMode = useStorage('simple_mode', useConfigStore().app.simple_mode || false) - simpleMode.value = false - - document.querySelectorAll('div.has-dropdown').forEach(el => el.classList.remove('is-active')) - if (callback) { - callback() +const connectionStatusColor = computed(() => { + switch (socketStore.connectionStatus) { + case 'connected': + return 'has-text-success' + case 'connecting': + return 'has-text-warning fa-spin' + case 'disconnected': + default: + return 'has-text-danger' } -} +}) diff --git a/ui/app/layouts/default.vue b/ui/app/layouts/default.vue index 6764ce65..fbdb6ed6 100644 --- a/ui/app/layouts/default.vue +++ b/ui/app/layouts/default.vue @@ -2,7 +2,15 @@ + + +