Skip to content

Commit 84d3c01

Browse files
update variable naming for premium filters
1 parent 79d4871 commit 84d3c01

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

apps/web/src/app/vault/individual-vault/vault-filter/components/vault-filter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
453453
},
454454
action: this.applyTypeFilter as (filterNode: TreeNode<VaultFilterType>) => Promise<void>,
455455
premiumOptions: {
456-
showPremiumBadge: true,
456+
showBadgeForNonPremium: true,
457457
blockFilterAction: promptForPremiumOnFilter
458458
? async () => await this.premiumUpgradePromptService.promptForPremium()
459459
: undefined,

apps/web/src/app/vault/individual-vault/vault-filter/shared/components/vault-filter-section.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class VaultFilterSectionComponent implements OnInit, OnDestroy {
123123
}
124124

125125
get premiumFeature() {
126-
return this.section?.premiumOptions?.showPremiumBadge;
126+
return this.section?.premiumOptions?.showBadgeForNonPremium;
127127
}
128128

129129
get divider() {

apps/web/src/app/vault/individual-vault/vault-filter/shared/models/vault-filter-section.type.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ export type VaultFilterSection = {
4949
divider?: boolean;
5050
premiumOptions?: {
5151
/** When true, the premium badge will show on the filter for non-premium users. */
52-
showPremiumBadge?: true;
53-
/** Action to be called instead of applying the filter. */
52+
showBadgeForNonPremium?: true;
53+
/**
54+
* Action to be called instead of applying the filter.
55+
* Useful when the user does not have access to a filter (e.g., premium feature)
56+
* and custom behavior is needed when invoking the filter.
57+
*/
5458
blockFilterAction?: () => Promise<void>;
5559
};
5660
};

0 commit comments

Comments
 (0)