mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-01 12:48:53 +08:00
Refactoring feature flags store functions
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user