Browse Source

Provide locale to rule settings dialog

pull/5845/head
Thomas Kaul 1 week ago
parent
commit
654700de98
  1. 2
      apps/client/src/app/components/rule/rule.component.ts
  2. 1
      apps/client/src/app/components/rules/rules.component.html
  3. 1
      apps/client/src/app/components/rules/rules.component.ts
  4. 2
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

2
apps/client/src/app/components/rule/rule.component.ts

@ -51,6 +51,7 @@ export class GfRuleComponent implements OnInit {
@Input() categoryName: string;
@Input() hasPermissionToUpdateUserSettings: boolean;
@Input() isLoading: boolean;
@Input() locale: string;
@Input() rule: PortfolioReportRule;
@Input() settings: XRayRulesSettings['AccountClusterRiskCurrentInvestment'];
@ -82,6 +83,7 @@ export class GfRuleComponent implements OnInit {
data: {
rule,
categoryName: this.categoryName,
locale: this.locale,
settings: this.settings
} as RuleSettingsDialogParams,
width: this.deviceType === 'mobile' ? '100vw' : '50rem'

1
apps/client/src/app/components/rules/rules.component.html

@ -12,6 +12,7 @@
[hasPermissionToUpdateUserSettings]="
hasPermissionToUpdateUserSettings
"
[locale]="locale"
[rule]="rule"
[settings]="settings?.[rule.key]"
(ruleUpdated)="onRuleUpdated($event)"

1
apps/client/src/app/components/rules/rules.component.ts

@ -26,6 +26,7 @@ export class GfRulesComponent {
@Input() categoryName: string;
@Input() hasPermissionToUpdateUserSettings: boolean;
@Input() isLoading: boolean;
@Input() locale: string;
@Input() rules: PortfolioReportRule[];
@Input() settings: XRayRulesSettings;

2
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

@ -76,6 +76,7 @@
!hasImpersonationId && hasPermissionToUpdateUserSettings
"
[isLoading]="isLoading"
[locale]="user?.settings?.locale"
[rules]="category.rules"
[settings]="user?.settings?.xRayRules"
(rulesUpdated)="onRulesUpdated($event)"
@ -90,6 +91,7 @@
!hasImpersonationId && hasPermissionToUpdateUserSettings
"
[isLoading]="isLoading"
[locale]="user?.settings?.locale"
[rules]="inactiveRules"
[settings]="user?.settings?.xRayRules"
(rulesUpdated)="onRulesUpdated($event)"

Loading…
Cancel
Save