Filter dashboard widgets by View
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER
|
||||
from govoplan_core.core.modules import DocumentationTopic, FrontendModule, FrontendRoute, ModuleManifest, NavItem
|
||||
from govoplan_core.core.views import ViewSurface
|
||||
|
||||
|
||||
manifest = ModuleManifest(
|
||||
@@ -16,6 +17,15 @@ manifest = ModuleManifest(
|
||||
package_name="@govoplan/dashboard-webui",
|
||||
routes=(FrontendRoute(path="/dashboard", component="DashboardPage", order=10),),
|
||||
nav_items=(NavItem(path="/dashboard", label="Dashboard", icon="dashboard", order=10),),
|
||||
view_surfaces=(
|
||||
ViewSurface(
|
||||
id="dashboard.widget.installed-modules",
|
||||
module_id="dashboard",
|
||||
kind="section",
|
||||
label="Installed modules widget",
|
||||
order=10,
|
||||
),
|
||||
),
|
||||
),
|
||||
documentation=(
|
||||
DocumentationTopic(
|
||||
|
||||
Reference in New Issue
Block a user