mirror of https://github.com/abpframework/abp.git
2 changed files with 0 additions and 23 deletions
@ -1,5 +1,4 @@ |
|||||
export * from './common'; |
export * from './common'; |
||||
export * from './confirmation'; |
export * from './confirmation'; |
||||
export * from './setting-management'; |
|
||||
export * from './statistics'; |
export * from './statistics'; |
||||
export * from './toaster'; |
export * from './toaster'; |
||||
|
|||||
@ -1,22 +0,0 @@ |
|||||
import { Type } from '@angular/core'; |
|
||||
|
|
||||
export interface SettingTab { |
|
||||
component: Type<any>; |
|
||||
name: string; |
|
||||
order: number; |
|
||||
requiredPolicy?: string; |
|
||||
} |
|
||||
|
|
||||
const SETTING_TABS = [] as SettingTab[]; |
|
||||
|
|
||||
export function addSettingTab(tab: SettingTab | SettingTab[]): void { |
|
||||
if (!Array.isArray(tab)) { |
|
||||
tab = [tab]; |
|
||||
} |
|
||||
|
|
||||
SETTING_TABS.push(...tab); |
|
||||
} |
|
||||
|
|
||||
export function getSettingTabs(): SettingTab[] { |
|
||||
return SETTING_TABS; |
|
||||
} |
|
||||
Loading…
Reference in new issue