diff --git a/src/frontend/app/notes/notes.component.ts b/src/frontend/app/notes/notes.component.ts index a76ddf16eca29f85ffaeafb1e12df40ea55dfc77..76828fdfc9c9fbaadc1d3548e57134534d1b7397 100644 --- a/src/frontend/app/notes/notes.component.ts +++ b/src/frontend/app/notes/notes.component.ts @@ -76,6 +76,7 @@ export class NotesListComponent implements OnInit { this.notes.splice(index, 1); } this.notify.success(this.lang.noteRemoved); + this.reloadBadgeNotes.emit(`${this.notes.length}`); }) ).subscribe(); } diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index 777b9aaf0cf47b85f7d47c56243d7075f01e8c5a..3802bb14d2c92d415fdd1c4cea235f99cf939761 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -75,7 +75,7 @@ [resId]="currentResourceInformations.resId"> </app-history-list> <app-notes-list *ngIf="currentTool === 'notes' && !loading" #appNotesList [editMode]="true" - [resId]="currentResourceInformations.resId"> + [resId]="currentResourceInformations.resId" (reloadBadgeNotes)="refreshBadge($event,'notes')"> </app-notes-list> <app-linked-resource-list *ngIf="currentTool === 'linkedResources' && !loading" #appLinkedResourceList [resId]="currentResourceInformations.resId"