diff --git a/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.html b/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.html index ed0dd62245f..21da20d658f 100644 --- a/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.html +++ b/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.html @@ -1,12 +1,7 @@
- + {{ ruleType.label }}
keyboard_arrow_down
@@ -20,7 +15,7 @@ minlength="2" required [placeholder]="'RULES_APP.TAB.INFORMATION.NAME' | translate" - [disabled]="(hasUpdateAgencyRole$ | async) !== true" + [disabled]="(hasUpdateRuleRole$ | async) !== true" > @@ -37,7 +32,7 @@ pattern="[0-9]*" required [placeholder]="'RULES_APP.TAB.INFORMATION.PERIOD' | translate" - [disabled]="(hasUpdateAgencyRole$ | async) !== true" + [disabled]="(hasUpdateRuleRole$ | async) !== true" > @@ -53,7 +48,7 @@ formControlName="ruleMeasurement" [placeholder]="'RULES_APP.TAB.INFORMATION.UNIT_MEASURE' | translate" required - [disabled]="(hasUpdateAgencyRole$ | async) !== true" + [disabled]="(hasUpdateRuleRole$ | async) !== true" > {{ ruleMeasurement.label }} @@ -68,7 +63,7 @@ class="w-100" required formControlName="ruleDescription" - [disabled]="(hasUpdateAgencyRole$ | async) !== true" + [disabled]="(hasUpdateRuleRole$ | async) !== true" [placeholder]="'RULES_APP.TAB.INFORMATION.DESCRIPTION' | translate" [rows]="2" > @@ -81,11 +76,7 @@
-
diff --git a/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.ts b/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.ts index 725d4f6c697..cff2d372fc4 100644 --- a/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.ts +++ b/ui/ui-frontend/projects/referential/src/app/rule/rule-preview/rule-information-tab/rule-information-tab.component.ts @@ -63,7 +63,7 @@ export class RuleInformationTabComponent implements OnInit { ruleMeasurements = RULE_MEASUREMENTS; tenantIdentifier: number; - hasUpdateAgencyRole$: Observable; + hasUpdateRuleRole$: Observable; private oldRule: Rule; @@ -108,7 +108,7 @@ export class RuleInformationTabComponent implements OnInit { } ngOnInit() { - this.hasUpdateAgencyRole$ = this.route.params.pipe( + this.hasUpdateRuleRole$ = this.route.params.pipe( mergeMap((params) => { this.tenantIdentifier = +params.tenantIdentifier; return this.securityService.hasRole(RULES_APP, this.tenantIdentifier, VitamuiRoles.ROLE_UPDATE_RULES);