From 2cbdc92ef175c46323dc38c61f3b9a31c95cc1c0 Mon Sep 17 00:00:00 2001 From: baldo Date: Tue, 23 Aug 2022 15:14:07 +0200 Subject: [PATCH] Refactoring: Pinia stores are called *Store now. --- .../src/components/nodes/NodesFilterPanel.vue | 4 ++-- frontend/src/components/page/PageFooter.vue | 16 ++++++++-------- frontend/src/components/page/PageHeader.vue | 8 ++++---- frontend/src/views/AdminDashboardView.vue | 16 ++++++++-------- frontend/src/views/AdminNodesView.vue | 18 +++++++++--------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/frontend/src/components/nodes/NodesFilterPanel.vue b/frontend/src/components/nodes/NodesFilterPanel.vue index 3b360a1..5b5c4a2 100644 --- a/frontend/src/components/nodes/NodesFilterPanel.vue +++ b/frontend/src/components/nodes/NodesFilterPanel.vue @@ -50,7 +50,7 @@ const props = defineProps(); const input = ref(); const hasFocus = ref(false); const suggestedFiltersExpanded = ref(false); -const config = useConfigStore(); +const configStore = useConfigStore(); type Filter = { field: string, @@ -81,7 +81,7 @@ function selectedFilterIndexForField(field: string): number { } const suggestedFilters = computed(() => { - const cfg = config.getConfig; + const cfg = configStore.getConfig; const sites = cfg?.community.sites || []; const domains = cfg?.community.domains || []; diff --git a/frontend/src/components/page/PageFooter.vue b/frontend/src/components/page/PageFooter.vue index 86ab4ac..a3c7567 100644 --- a/frontend/src/components/page/PageFooter.vue +++ b/frontend/src/components/page/PageFooter.vue @@ -2,13 +2,13 @@ import {useConfigStore} from "@/stores/config"; import {useVersionStore} from "@/stores/version"; -const config = useConfigStore(); -const version = useVersionStore(); +const configStore = useConfigStore(); +const versionStore = useVersionStore(); diff --git a/frontend/src/components/page/PageHeader.vue b/frontend/src/components/page/PageHeader.vue index e99e1b7..9d76117 100644 --- a/frontend/src/components/page/PageHeader.vue +++ b/frontend/src/components/page/PageHeader.vue @@ -1,12 +1,12 @@