feat: UpdateService in BasePageComponent integrieren
- `UpdateService` in `BasePageComponent` integriert. - Der Konstruktor wurde aktualisiert, um `UpdateService` zu integrieren. Wenn im `UpdateService` eine Aktion vorhanden ist, wird `executeAll` aufgerufen.
This commit is contained in:
parent
2175fdc15f
commit
ac16d0d48d
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user