Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Update setting annotation ID
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jul 21, 2023
1 parent f580d0d commit 962fc97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export enum WellKnown {
Requires = "safing/portbase:config:requires",
RestartPending = "safing/portbase:options:restart-pending",
EndpointListVerdictNames = "safing/portmaster:ui:endpoint-list:verdict-names",
SettingRequiresFeaturePlan = "safing/portmaster:ui:config:requires-feature"
RequiresFeatureID = "safing/portmaster:ui:config:requires-feature"
}

/**
Expand All @@ -162,7 +162,7 @@ export interface Annotations<T extends OptionValueType> {
[WellKnown.Stackable]?: true;
[WellKnown.QuickSetting]?: QuickSetting<T> | QuickSetting<T>[];
[WellKnown.Requires]?: ValueRequirement | ValueRequirement[];
[WellKnown.SettingRequiresFeaturePlan]?: string | string[];
[WellKnown.RequiresFeatureID]?: string | string[];
// Any thing else...
[key: string]: any;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class GenericSettingComponent<S extends BaseSetting<any, any>> implements
this.spn.profile$
.pipe(takeUntilDestroyed(this.destryoRef))
.subscribe((profile: UserProfile | null) => {
let value = this.setting?.Annotations[WellKnown.SettingRequiresFeaturePlan]
let value = this.setting?.Annotations[WellKnown.RequiresFeatureID]
if (value === undefined) {
this._upgradeRequired = false;
} else {
Expand Down

0 comments on commit 962fc97

Please sign in to comment.