refactor: Fix Enteprise type errors (#9442)
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from '@/api/ldap';
|
||||
import { getPromptsData, getSettings, submitContactInfo, submitValueSurvey } from '@/api/settings';
|
||||
import { testHealthEndpoint } from '@/api/templates';
|
||||
import type { EnterpriseEditionFeature } from '@/constants';
|
||||
import type { EnterpriseEditionFeatureValue } from '@/Interface';
|
||||
import {
|
||||
CONTACT_PROMPT_MODAL_KEY,
|
||||
STORES,
|
||||
@@ -79,7 +79,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||
}),
|
||||
getters: {
|
||||
isEnterpriseFeatureEnabled() {
|
||||
return (feature: EnterpriseEditionFeature): boolean => this.settings.enterprise?.[feature];
|
||||
return (feature: EnterpriseEditionFeatureValue): boolean =>
|
||||
Boolean(this.settings.enterprise?.[feature]);
|
||||
},
|
||||
versionCli(): string {
|
||||
return this.settings.versionCli;
|
||||
|
||||
Reference in New Issue
Block a user