mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Refactoring feature flags store functions
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -15,7 +15,6 @@ import { ucFirst } from '@shell/utils/string';
|
||||
import HarvesterResource from '../harvester';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { HCI } from '../../types';
|
||||
import { featureEnabled } from '../../utils/feature-flags';
|
||||
|
||||
const ALLOW_SYSTEM_LABEL_KEYS = [
|
||||
'topology.kubernetes.io/zone',
|
||||
@@ -371,7 +370,7 @@ export default class HciNode extends HarvesterResource {
|
||||
}
|
||||
|
||||
get cpuPinningFeatureEnabled() {
|
||||
return featureEnabled(this.$rootGetters, 'cpuPinning');
|
||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('cpuPinning');
|
||||
}
|
||||
|
||||
get isCPUManagerEnabled() {
|
||||
|
||||
Reference in New Issue
Block a user