Refactoring feature flags store functions

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia committed 2024-11-12 11:50:44 +01:00
1 parent 8ba4dbd9e8
commit 021a64a5ec
10 files changed
+39 -28

No files matched your search

@@ -13,7 +13,6 @@ import { parseVolumeClaimTemplates } from '@pkg/utils/vm';
import { BACKUP_TYPE } from '../config/types';
import { HCI } from '../types';
import HarvesterResource from './harvester';
import { featureEnabled } from '../utils/feature-flags';
export const OFF = 'Off';
@@ -481,7 +480,7 @@ export default class VirtVm extends HarvesterResource {
}
get cpuPinningFeatureEnabled() {
return featureEnabled(this.$rootGetters, 'cpuPinning');
return this.$rootGetters['harvester-common/getFeatureEnabled']('cpuPinning');
}
get isCpuPinning() {