diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.html b/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.html index e036e0d76393148204fd177d300e05fb2a8db706..6d41aacdb4d4762f29add8b171c83b5785d3a7d1 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.html +++ b/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.html @@ -3,7 +3,7 @@ <div class="row"> <div class=" col-6"> - <vitamui-common-slide-toggle [formControl]="statusProfile" checked="form.controls.status.value === 'ACTIVE'"> + <vitamui-common-slide-toggle [formControl]="statusProfile" [checked]="form.controls.status.value === 'ACTIVE'"> {{ 'PROFILE_PREVIEW.INFORMATION_TAB.PROFILE' | translate }} <span *ngIf="form.controls.status.value === 'INACTIVE'">in</span>{{ 'PROFILE_PREVIEW.INFORMATION_TAB.ACTIF' | translate }} diff --git a/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.ts b/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.ts index ff93128afe5e44c360619418dfa2424a275707cd..fe7875d9d2e92c3fe8e27392c158f10d8ec015f9 100644 --- a/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.ts +++ b/ui/ui-frontend/projects/pastis/src/app/profile/profile-preview/profile-information-tab/profile-information-tab/profile-information-tab.component.ts @@ -43,7 +43,7 @@ export class ProfileInformationTabComponent implements OnInit { @Input() set inputProfile(profileDescription: ProfileDescription) { this._inputProfile = profileDescription; - + this.statusProfile.setValue(this.inputProfile.status === 'INACTIVE' ? false : true) this.resetForm(this.inputProfile); this.updated.emit(false); }