Browse Source

Merge pull request #23026 from abpframework/auto-merge/rel-9-2/3769

Merge branch dev with rel-9.2
pull/23033/head
maliming 1 year ago
committed by GitHub
parent
commit
487a266e57
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.html
  2. 6
      npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.ts

10
npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.html

@ -24,9 +24,13 @@
</div>
<div class="col-12 col-md-9">
@if (settings.length) {
<div class="tab-content">
<div class="tab-pane fade show active" [id]="selected.name + '-tab'" role="tabpanel">
<ng-container *ngComponentOutlet="selected.component"></ng-container>
<div class="tab-content pt-0">
<div
class="tab-pane fade show active"
[id]="selected.name + '-tab'"
role="tabpanel"
>
<ng-container *ngComponentOutlet="selected.component" />
</div>
</div>
}

6
npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.ts

@ -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();
}

Loading…
Cancel
Save