mirror of https://github.com/rancher/dashboard.git
Rename `useFeatureFlag` to `useRuntimeFlag`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
d26c17472f
commit
f44e014bba
|
|
@ -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 };
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
Loading…
Reference in New Issue