feat: ButtonVisibilityService in der Startseite implementiert
This commit is contained in:
parent
c8bcc2820b
commit
e2d479d9a8
@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { AfterViewInit, Component } from '@angular/core';
|
||||
import { BasePageComponent } from '../base-page/base-page.component';
|
||||
|
||||
@Component({
|
||||
@ -6,5 +6,8 @@ import { BasePageComponent } from '../base-page/base-page.component';
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html'
|
||||
})
|
||||
export class HomeComponent extends BasePageComponent {
|
||||
export class HomeComponent extends BasePageComponent implements AfterViewInit {
|
||||
ngAfterViewInit(): void {
|
||||
this.buttonVisibilityService.setVisibleOnly()
|
||||
}
|
||||
}
|
||||
@ -37,7 +37,7 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.buttonVisibilityService.setVisibleOnly(this.refreshService, this.transferService)
|
||||
this.buttonVisibilityService.setVisibleOnly(this.refreshService)
|
||||
this.refreshService.removeAll();
|
||||
this.refreshService.add(() => {
|
||||
this.users.fetchData();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user