|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import { ABP } 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'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
@ -9,15 +9,15 @@ import { Subscription } from 'rxjs'; |
|
|
|
templateUrl: './setting-management.component.html', |
|
|
|
}) |
|
|
|
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(); |
|
|
|
} |
|
|
|
|