From cef2690aa8c1ad67724280a763bc31c5a66da15c Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 6 Aug 2024 17:17:52 +0200 Subject: [PATCH] fix: integrate UpdateService with RefreshService. Ensured `UpdateService` actions are cleared when executing all actions in `RefreshService`. --- .../user_manager_ui/src/app/services/refresh.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() } }