|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { Injectable } from '@angular/core'; |
|
|
|
import { Injectable, Injector } from '@angular/core'; |
|
|
|
import { addAbpRoutes, eLayoutType, PatchRouteByName, ABP } from '@abp/ng.core'; |
|
|
|
import { getSettingTabs } from '@abp/ng.theme.shared'; |
|
|
|
import { Store } from '@ngxs/store'; |
|
|
|
@ -7,7 +7,7 @@ import { Store } from '@ngxs/store'; |
|
|
|
providedIn: 'root', |
|
|
|
}) |
|
|
|
export class SettingManagementConfigService { |
|
|
|
constructor(private store: Store) { |
|
|
|
constructor(private injector: Injector) { |
|
|
|
const route = { |
|
|
|
name: 'AbpSettingManagement::Settings', |
|
|
|
path: 'setting-management', |
|
|
|
@ -23,7 +23,7 @@ export class SettingManagementConfigService { |
|
|
|
setTimeout(() => { |
|
|
|
const tabs = getSettingTabs(); |
|
|
|
if (!tabs || !tabs.length) { |
|
|
|
this.store.dispatch(new PatchRouteByName('AbpSettingManagement::Settings', { ...route, invisible: true })); |
|
|
|
this.injector.get(Store).dispatch(new PatchRouteByName('AbpSettingManagement::Settings', { ...route, invisible: true })); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|