From f44e014bba57eaefc03b014833b5574b5704e31f Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Wed, 9 Apr 2025 12:44:41 -0700 Subject: [PATCH] Rename `useFeatureFlag` to `useRuntimeFlag` Signed-off-by: Phillip Rak --- shell/components/ExplorerProjectsNamespaces.vue | 4 ++-- shell/components/SortableTable/index.vue | 4 ++-- shell/composables/{useFeatureFlag.ts => useRuntimeFlag.ts} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename shell/composables/{useFeatureFlag.ts => useRuntimeFlag.ts} (88%) diff --git a/shell/components/ExplorerProjectsNamespaces.vue b/shell/components/ExplorerProjectsNamespaces.vue index d2a1d46a52..4904e5bee4 100644 --- a/shell/components/ExplorerProjectsNamespaces.vue +++ b/shell/components/ExplorerProjectsNamespaces.vue @@ -17,7 +17,7 @@ import ResourceFetch from '@shell/mixins/resource-fetch'; import DOMPurify from 'dompurify'; import { HARVESTER_NAME as HARVESTER } from '@shell/config/features'; import ActionMenu from '@shell/components/ActionMenuShell.vue'; -import { useFeatureFlag } from '@shell/composables/useFeatureFlag'; +import { useRuntimeFlag } from '@shell/composables/useRuntimeFlag'; export default { name: 'ListProjectNamespace', @@ -63,7 +63,7 @@ export default { setup() { const store = useStore(); - const { featureDropdownMenu } = useFeatureFlag(store); + const { featureDropdownMenu } = useRuntimeFlag(store); return { featureDropdownMenu }; }, diff --git a/shell/components/SortableTable/index.vue b/shell/components/SortableTable/index.vue index 8c3c4d2f2a..c4a8c1dc1a 100644 --- a/shell/components/SortableTable/index.vue +++ b/shell/components/SortableTable/index.vue @@ -24,7 +24,7 @@ import { getParent } from '@shell/utils/dom'; import { FORMATTERS } from '@shell/components/SortableTable/sortable-config'; import ButtonMultiAction from '@shell/components/ButtonMultiAction.vue'; import ActionMenu from '@shell/components/ActionMenuShell.vue'; -import { useFeatureFlag } from '@shell/composables/useFeatureFlag'; +import { useRuntimeFlag } from '@shell/composables/useRuntimeFlag'; // Uncomment for table performance debugging // import tableDebug from './debug'; @@ -546,7 +546,7 @@ export default { }); const store = useStore(); - const { featureDropdownMenu } = useFeatureFlag(store); + const { featureDropdownMenu } = useRuntimeFlag(store); return { table, diff --git a/shell/composables/useFeatureFlag.ts b/shell/composables/useRuntimeFlag.ts similarity index 88% rename from shell/composables/useFeatureFlag.ts rename to shell/composables/useRuntimeFlag.ts index 1bf64a3c38..3ce8b96ecb 100644 --- a/shell/composables/useFeatureFlag.ts +++ b/shell/composables/useRuntimeFlag.ts @@ -6,7 +6,7 @@ import { getVersionInfo } from '@shell/utils/version'; let store: Store; -export const useFeatureFlag = (vuexStore: Store) => { +export const useRuntimeFlag = (vuexStore: Store) => { store = vuexStore; return { featureDropdownMenu };