From d1bdfedb3c6a8fbf7d9037d6ec030d2e35ebc2fc Mon Sep 17 00:00:00 2001 From: zurdi Date: Sat, 6 Apr 2024 00:49:09 +0200 Subject: [PATCH] viewer role UI permissions fixed --- .../src/views/Settings/ControlPanel/Base.vue | 29 +++++++++++++++---- .../Settings/ControlPanel/General/Base.vue | 6 +++- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/Settings/ControlPanel/Base.vue b/frontend/src/views/Settings/ControlPanel/Base.vue index b8d077e67..254f28e04 100644 --- a/frontend/src/views/Settings/ControlPanel/Base.vue +++ b/frontend/src/views/Settings/ControlPanel/Base.vue @@ -7,7 +7,7 @@ import ControlPanelUsers from "@/views/Settings/ControlPanel/Users/Base.vue"; import { ref } from "vue"; // Props -const authStore = storeAuth(); +const auth = storeAuth(); const heartbeatStore = storeHeartbeat(); const tab = ref("general"); @@ -15,9 +15,14 @@ const tab = ref("general"); General - Config Config + @@ -45,9 +50,23 @@ const tab = ref("general"); RomM {{ heartbeatStore.value.VERSION }} mdi-circle-smallmdi-github - Github + Github mdi-circle-small - Join to our Discord + Join to our Discord diff --git a/frontend/src/views/Settings/ControlPanel/General/Base.vue b/frontend/src/views/Settings/ControlPanel/General/Base.vue index 83662e7a1..125e820c2 100644 --- a/frontend/src/views/Settings/ControlPanel/General/Base.vue +++ b/frontend/src/views/Settings/ControlPanel/General/Base.vue @@ -2,10 +2,14 @@ import InterfaceOptions from "@/components/Settings/General/Interface/InterfaceOptions.vue"; import TaskStatus from "@/components/Settings/General/TaskStatus/TaskStatusCard.vue"; import Theme from "@/components/Settings/General/Theme/ThemeCard.vue"; +import storeAuth from "@/stores/auth"; + +// Props +const auth = storeAuth();