Rename `useFeatureFlag` to `useRuntimeFlag`

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
Phillip Rak 2025-04-09 12:44:41 -07:00
parent d26c17472f
commit f44e014bba
3 changed files with 5 additions and 5 deletions

View File

@ -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 };
},

View File

@ -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,

View File

@ -6,7 +6,7 @@ import { getVersionInfo } from '@shell/utils/version';
let store: Store<any>;
export const useFeatureFlag = (vuexStore: Store<any>) => {
export const useRuntimeFlag = (vuexStore: Store<any>) => {
store = vuexStore;
return { featureDropdownMenu };