diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/services/refresh.service.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/services/refresh.service.ts index 37f4209..52ee4c9 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/services/refresh.service.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/services/refresh.service.ts @@ -1,11 +1,12 @@ import { Injectable } from '@angular/core'; +import { UpdateService } from './update.service'; @Injectable({ providedIn: 'root' }) export class RefreshService { - constructor() { } + constructor(private updateService: UpdateService) { } private actions: Array<() => void> = []; @@ -19,5 +20,6 @@ export class RefreshService { executeAll(): void { this.actions.forEach(action => action()); + this.updateService.removeAll() } }