feat: own tenant administration WebUI
This commit is contained in:
@@ -6,7 +6,8 @@ from govoplan_core.core.access import (
|
||||
CAPABILITY_AUTH_TENANT_CONTEXT_SWITCHER,
|
||||
CAPABILITY_TENANCY_TENANT_RESOLVER,
|
||||
)
|
||||
from govoplan_core.core.modules import ModuleContext, ModuleManifest
|
||||
from govoplan_core.core.modules import FrontendModule, ModuleContext, ModuleManifest
|
||||
from govoplan_core.core.views import ViewSurface
|
||||
|
||||
|
||||
def _tenant_resolver(context: ModuleContext):
|
||||
@@ -40,6 +41,26 @@ manifest = ModuleManifest(
|
||||
capability_factories={
|
||||
CAPABILITY_TENANCY_TENANT_RESOLVER: _tenant_resolver,
|
||||
},
|
||||
frontend=FrontendModule(
|
||||
module_id="tenancy",
|
||||
package_name="@govoplan/tenancy-webui",
|
||||
view_surfaces=(
|
||||
ViewSurface(
|
||||
id="tenancy.admin.system-tenants",
|
||||
module_id="tenancy",
|
||||
kind="section",
|
||||
label="System tenants",
|
||||
order=10,
|
||||
),
|
||||
ViewSurface(
|
||||
id="tenancy.admin.tenant-settings",
|
||||
module_id="tenancy",
|
||||
kind="section",
|
||||
label="Tenant settings",
|
||||
order=90,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user