Skip to content

Commit

Permalink
Affichage du composant pnx-draw-form lors de l'édition d'un groupe de…
Browse files Browse the repository at this point in the history
… site
  • Loading branch information
amandine-sahl committed Dec 9, 2024
1 parent b5eefa1 commit a4df16e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
[permission]="currentPermission"
>
</pnx-monitoring-properties-g>
<pnx-monitoring-form [obj]="obj" [objForm]="form" (objChanged)="onObjChanged($event)" *ngIf="bEdit" [(bEdit)]="bEdit"
<pnx-monitoring-form [obj]="obj" [objForm]="form" (objChanged)="onObjChanged($event)"
*ngIf="bEdit && obj?.bIsInitialized" [(bEdit)]="bEdit"
[apiService]="siteService" [isExtraForm]="true" [currentUser]="currentUser">
</pnx-monitoring-form>
<pnx-monitoring-datatable-g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class MonitoringSitesgroupsDetailComponent

this.updateBreadCrumb(data.sitesGroup);
this.setDataTableObj({ sites: sites, sitesGroup: this.sitesGroup });

if (this.checkEditParam) {
this._formService.changeDataSub(
this.sitesGroup,
Expand All @@ -175,6 +176,13 @@ export class MonitoringSitesgroupsDetailComponent

this.bEdit = true;
}

this._formService.changeFormMapObj({
frmGp: this.form,
bEdit: this.bEdit,
obj: this.obj,
});
this.obj.bIsInitialized = true;
});
}
ngOnDestroy() {
Expand Down

0 comments on commit a4df16e

Please sign in to comment.