Browse Source

fix: setting management top padding

pull/23010/head
sumeyye 1 year ago
parent
commit
2b258ba0d4
  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>
<div class="col-12 col-md-9"> <div class="col-12 col-md-9">
@if (settings.length) { @if (settings.length) {
<div class="tab-content"> <div class="tab-content pt-0">
<div class="tab-pane fade show active" [id]="selected.name + '-tab'" role="tabpanel"> <div
<ng-container *ngComponentOutlet="selected.component"></ng-container> class="tab-pane fade show active"
[id]="selected.name + '-tab'"
role="tabpanel"
>
<ng-container *ngComponentOutlet="selected.component" />
</div> </div>
</div> </div>
} }

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

@ -1,6 +1,6 @@
import { ABP } from '@abp/ng.core'; import { ABP } from '@abp/ng.core';
import { SettingTabsService } from '@abp/ng.setting-management/config'; 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 { Subscription } from 'rxjs';
@Component({ @Component({
@ -9,15 +9,15 @@ import { Subscription } from 'rxjs';
templateUrl: './setting-management.component.html', templateUrl: './setting-management.component.html',
}) })
export class SettingManagementComponent implements OnDestroy, OnInit { export class SettingManagementComponent implements OnDestroy, OnInit {
private settingTabsService = inject(SettingTabsService);
private subscription = new Subscription(); private subscription = new Subscription();
settings: ABP.Tab[] = []; settings: ABP.Tab[] = [];
selected!: ABP.Tab; selected!: ABP.Tab;
trackByFn: TrackByFunction<ABP.Tab> = (_, item) => item.name; trackByFn: TrackByFunction<ABP.Tab> = (_, item) => item.name;
constructor(private settingTabsService: SettingTabsService) {}
ngOnDestroy() { ngOnDestroy() {
this.subscription.unsubscribe(); this.subscription.unsubscribe();
} }

Loading…
Cancel
Save