Skip to content
Snippets Groups Projects
Commit 1cc007e1 authored by Vinciane's avatar Vinciane
Browse files

FEAT #9907 refresh basket home

parent 65834028
No related branches found
No related tags found
No related merge requests found
......@@ -47,4 +47,11 @@ export class BasketHomeComponent implements OnInit {
this.snavL.close();
}
}
refreshBasketHome(){
this.http.get(this.coreUrl + "rest/home")
.subscribe((data: any) => {
this.homeData = data;
});
}
}
......@@ -4,7 +4,7 @@
[opened]="mobileMode ? false : true" autoFocus="false" style="overflow-x:hidden;" [ngStyle]="{'width': mobileMode ? '80%' : '400px'}">
<menu-shortcut></menu-shortcut>
<menu-nav></menu-nav>
<basket-home *ngIf="homeData" [homeData]="homeData" [snavL]="snav" [currentBasketInfo]="currentBasketInfo"></basket-home>
<basket-home *ngIf="homeData" #basketHome [homeData]="homeData" [snavL]="snav" [currentBasketInfo]="currentBasketInfo"></basket-home>
<mat-divider></mat-divider>
</mat-sidenav>
<mat-sidenav-content>
......
......@@ -20,6 +20,7 @@ import { ActionsListComponent } from '../actions/actions-list.component';
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
import { VisaWorkflowComponent } from '../visa/visa-workflow.component';
import { AvisWorkflowComponent } from '../avis/avis-workflow.component';
import { BasketHomeComponent } from '../basket/basket-home.component';
declare function $j(selector: any): any;
......@@ -94,6 +95,7 @@ export class BasketListComponent implements OnInit {
@ViewChild('appDiffusionsList') appDiffusionsList: DiffusionsListComponent;
@ViewChild('appVisaWorkflow') appVisaWorkflow: VisaWorkflowComponent;
@ViewChild('appAvisWorkflow') appAvisWorkflow: AvisWorkflowComponent;
@ViewChild('basketHome') basketHome: BasketHomeComponent;
currentSelectedChrono: string = '';
......@@ -240,16 +242,9 @@ export class BasketListComponent implements OnInit {
this.filtersChange.emit();
}
refreshHomeBasket(){
this.http.get('../../rest/home')
.subscribe((data: any) => {
this.homeData = data;
});
}
refreshDaoAfterAction() {
this.refreshDao();
this.refreshHomeBasket();
this.basketHome.refreshBasketHome();
const e:any = {checkd : false};
this.toggleAllRes(e);
}
......
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