From 353b3327945902f8eea097735756d0eb5823400c Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Wed, 13 Jan 2021 10:08:58 +0100 Subject: [PATCH] FEAT #14944 TIME 0:10 fix reload badge notes --- src/frontend/app/process/process.component.html | 2 +- src/frontend/app/process/process.component.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index d2442615fe7..eb2d25eb503 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -346,7 +346,7 @@ [resId]="currentResourceInformations.resId"> </app-history-list> <app-notes-list *ngIf="modal.id === 'notes' && !loading" #appNotesList [editMode]="true" - [resId]="currentResourceInformations.resId"> + [resId]="currentResourceInformations.resId" (reloadBadgeNotes)="refreshBadge($event,'notes')"> </app-notes-list> <app-linked-resource-list *ngIf="modal.id === 'linkedResources' && !loading" #appLinkedResourceList [resId]="currentResourceInformations.resId" diff --git a/src/frontend/app/process/process.component.ts b/src/frontend/app/process/process.component.ts index 2bde7c4ebfd..3207d686489 100755 --- a/src/frontend/app/process/process.component.ts +++ b/src/frontend/app/process/process.component.ts @@ -801,6 +801,7 @@ export class ProcessComponent implements OnInit, OnDestroy { this.loadBadges(); } else if (this.currentTool === 'notes' && this.appNotesList !== undefined) { this.appNotesList.addNote(); + this.loadBadges(); } } -- GitLab