diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts index c8ced3dc78e5a58cb8c62534e1b706154c619516..8d86c1ef491fbbf6af346eb352cd96464ea07ef0 100644 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts @@ -315,7 +315,7 @@ export class IndexingFormComponent implements OnInit { this.http.put(`../../rest/resources/${this.resId}?userId=${userId}&groupId=${groupId}&basketId=${basketId}`, formatdatas ).pipe( tap(() => { - this.currentResourceValues = this.getDatas(); + this.currentResourceValues = this.getDatas(false); this.notify.success(this.lang.dataUpdated); }), catchError((err: any) => { diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index 1dd09ea695af5567179052fe3c401b43cb9caaf0..cc5c6f0706eb6477318d427fc207035acfb44ebd 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -92,6 +92,9 @@ </app-attachments-list> <app-indexing-form *ngIf="currentTool === 'info' && !loading" #indexingForm [groupId]="currentGroupId" [resId]="currentResourceInformations.resId" [indexingFormId]="currentResourceInformations.modelId" [mode]="'process'"></app-indexing-form> + <button mat-raised-button *ngIf="indexingForm !== undefined && currentTool === 'info'" [disabled]="!indexingForm.isResourceModified()" (click)="confirmModification()" color="primary" [title]="lang.openInExternalModal" style="position:absolute;top:0px;"> + {{lang.save}} + </button> </ng-container> <ng-template #elseTemplate> <div class="openedModal"> @@ -225,6 +228,9 @@ </button> </div> <div class="modal-module-content"> + <button mat-raised-button *ngIf="indexingForm !== undefined && currentTool === 'info'" [disabled]="!indexingForm.isResourceModified()" (click)="confirmModification()" color="primary" [title]="lang.openInExternalModal"> + {{lang.save}} + </button> <app-notes-list *ngIf="modal.id === 'notes' && !loading" #appNotesList [editMode]="true" [resId]="currentResourceInformations.resId"> </app-notes-list> diff --git a/src/frontend/app/process/process.component.scss b/src/frontend/app/process/process.component.scss index da9e351569a0939cc8b912379027d6ccf195f24e..468b6bb537d9b5857e266f0cf4121be612a2cff4 100644 --- a/src/frontend/app/process/process.component.scss +++ b/src/frontend/app/process/process.component.scss @@ -44,6 +44,7 @@ } .indexing-form-container { + position: relative; height: 100%; overflow: auto; padding-left: 20px;