diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/base-page/base-page.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/base-page/base-page.component.ts index 9e3eb4b..4d36349 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/base-page/base-page.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/base-page/base-page.component.ts @@ -1,6 +1,7 @@ import { Component, inject } from '@angular/core'; import { RefreshService } from '../../services/refresh.service'; import { CreationService } from '../../services/creation.service'; +import { UpdateService } from '../../services/update.service'; @Component({ selector: 'app-base-page', @@ -13,9 +14,13 @@ export class BasePageComponent { protected refreshService: RefreshService = inject(RefreshService) protected creationService: CreationService = inject(CreationService) + protected updateService: UpdateService = inject(UpdateService) - constructor(){ + constructor() { this.refreshService.removeAll() this.creationService.disposeComponent(); + if (this.updateService.any) { + this.updateService.executeAll().then() + } } }