Skip to content
Snippets Groups Projects
Commit de0bdf88 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #12072 TIME 0:10 refresh badge sended resource

parent f991c9df
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@
[adminMode]="false" [resId]="currentResourceInformations.resId" [expanded]="true">
</app-diffusions-list>
<app-sended-resource-list *ngIf="currentTool === 'emails' && !loading" #appSendedResource
[resId]="currentResourceInformations.resId">
[resId]="currentResourceInformations.resId" (reloadBadgeSendedResource)="refreshBadge($event,'emails')">
</app-sended-resource-list>
<app-visa-workflow *ngIf="currentTool === 'visaCircuit' && !loading" #appVisaWorkflow
[resId]="currentResourceInformations.resId"
......@@ -275,7 +275,7 @@
[resId]="currentResourceInformations.resId" [expanded]="true">
</app-diffusions-list>
<app-sended-resource-list *ngIf="modal.id === 'emails' && !loading" #appSendedResource
[resId]="currentResourceInformations.resId">
[resId]="currentResourceInformations.resId" (reloadBadgeSendedResource)="refreshBadge($event,'emails')">
</app-sended-resource-list>
<app-visa-workflow *ngIf="modal.id === 'visaCircuit' && !loading"
[adminMode]="privilegeService.hasCurrentUserPrivilege('config_visa_workflow')" #appVisaWorkflow
......
......@@ -561,7 +561,7 @@ export class ProcessComponent implements OnInit {
}, 400);
}
refreshBadge(nbRres: any, id: string) {
refreshBadge(nbRres: any, id: string) {
this.processTool.filter(tool => tool.id === id)[0].count = nbRres;
}
......
import { Component, OnInit, ViewChild, EventEmitter, ElementRef, Input } from '@angular/core';
import { Component, OnInit, ViewChild, EventEmitter, ElementRef, Input, Output } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { LANG } from '../translate.component';
import { NotificationService } from '../notification.service';
......@@ -36,6 +36,8 @@ export class SendedResourceListComponent implements OnInit {
@Input('resId') resId: number = null;
@Output() reloadBadgeSendedResource = new EventEmitter<string>();
@ViewChild(MatSort, { static: false }) sort: MatSort;
constructor(
......@@ -55,7 +57,9 @@ export class SendedResourceListComponent implements OnInit {
await this.initAcknowledgementReceipList();
await this.initEmailList();
await this.initMessageExchange();
await this.initShippings()
await this.initShippings();
this.reloadBadgeSendedResource.emit(`${this.sendedResources.length}`);
this.initFilter();
setTimeout(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment