|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import { ABP, ForDirective, LocalizationPipe, PermissionDirective } from '@abp/ng.core'; |
|
|
|
import { SettingTabsService } from '@abp/ng.setting-management/config'; |
|
|
|
import { Component, OnDestroy, OnInit, TrackByFunction } from '@angular/core'; |
|
|
|
import { Component, inject, OnDestroy, OnInit, TrackByFunction } from '@angular/core'; |
|
|
|
import { Subscription } from 'rxjs'; |
|
|
|
import { CommonModule } from '@angular/common'; |
|
|
|
import { PageComponent } from '@abp/ng.components/page'; |
|
|
|
@ -11,15 +11,15 @@ import { PageComponent } from '@abp/ng.components/page'; |
|
|
|
imports: [CommonModule, PageComponent, LocalizationPipe, PermissionDirective, ForDirective], |
|
|
|
}) |
|
|
|
export class SettingManagementComponent implements OnDestroy, OnInit { |
|
|
|
private settingTabsService = inject(SettingTabsService); |
|
|
|
private subscription = new Subscription(); |
|
|
|
|
|
|
|
settings: ABP.Tab[] = []; |
|
|
|
|
|
|
|
selected!: ABP.Tab; |
|
|
|
|
|
|
|
trackByFn: TrackByFunction<ABP.Tab> = (_, item) => item.name; |
|
|
|
|
|
|
|
constructor(private settingTabsService: SettingTabsService) {} |
|
|
|
|
|
|
|
ngOnDestroy() { |
|
|
|
this.subscription.unsubscribe(); |
|
|
|
} |
|
|
|
|