mirror of https://github.com/abpframework/abp.git
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
import { ToolbarAction } from '@abp/ng.theme.shared/extensions'; |
|||
import { TenantsComponent } from '../components/tenants/tenants.component'; |
|||
import { TenantDto } from '../proxy/models'; |
|||
|
|||
export const DEFAULT_TENANTS_TOOLBAR_ACTIONS = ToolbarAction.createMany<TenantDto[]>([ |
|||
{ |
|||
text: 'AbpTenantManagement::ManageHostFeatures', |
|||
action: data => { |
|||
const component = data.getInjected(TenantsComponent); |
|||
component.openFeaturesModal(null); |
|||
}, |
|||
permission: 'FeatureManagement.ManageHostFeatures', |
|||
icon: 'fa fa-cog', |
|||
}, |
|||
{ |
|||
text: 'AbpTenantManagement::NewTenant', |
|||
action: data => { |
|||
const component = data.getInjected(TenantsComponent); |
|||
component.addTenant(); |
|||
}, |
|||
permission: 'AbpTenantManagement.Tenants.Create', |
|||
icon: 'fa fa-plus', |
|||
}, |
|||
]); |
|||
Loading…
Reference in new issue