From 9235c8b3d28a9ade523397b9445f2c3938afa210 Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Tue, 1 Oct 2024 21:33:18 +0200 Subject: [PATCH] show channels menu only when multiple channels exists, css tweaks, fix #777 #778 #779 #780 #782 #784 #785 --- frontend/components/ConfigAdvanced.vue | 4 +- frontend/components/ConfigChannel.vue | 115 +++++++++------------- frontend/components/ConfigPlayout.vue | 4 +- frontend/components/HeaderMenu.vue | 16 ++- frontend/components/MediaBrowser.vue | 4 +- frontend/components/PlayerControl.vue | 24 ++--- frontend/components/PlaylistGenerator.vue | 4 +- frontend/components/PlaylistTable.vue | 10 +- frontend/components/SystemStats.vue | 6 +- frontend/composables/variables.ts | 4 +- frontend/pages/logging.vue | 6 +- frontend/pages/media.vue | 18 ++-- frontend/pages/message.vue | 18 ++-- frontend/pages/player.vue | 14 +-- frontend/stores/config.ts | 22 ++--- frontend/stores/media.ts | 2 +- frontend/stores/playlist.ts | 2 +- 17 files changed, 127 insertions(+), 146 deletions(-) diff --git a/frontend/components/ConfigAdvanced.vue b/frontend/components/ConfigAdvanced.vue index abb90d38..9f497575 100644 --- a/frontend/components/ConfigAdvanced.vue +++ b/frontend/components/ConfigAdvanced.vue @@ -72,7 +72,7 @@ async function onSubmitAdvanced() { if (update.status === 200) { indexStore.msgAlert('success', t('advanced.updateSuccess'), 2) - const channel = configStore.channels[configStore.id].id + const channel = configStore.channels[configStore.i].id await $fetch(`/api/control/${channel}/process/`, { method: 'POST', @@ -90,7 +90,7 @@ async function onSubmitAdvanced() { async function restart(res: boolean) { if (res) { - const channel = configStore.channels[configStore.id].id + const channel = configStore.channels[configStore.i].id await $fetch(`/api/control/${channel}/process/`, { method: 'POST', diff --git a/frontend/components/ConfigChannel.vue b/frontend/components/ConfigChannel.vue index 29d0b3a5..47b2b186 100644 --- a/frontend/components/ConfigChannel.vue +++ b/frontend/components/ConfigChannel.vue @@ -1,6 +1,6 @@