Add HTML5 object context modes
This commit is contained in:
@@ -1758,7 +1758,7 @@ async def html5_project_flowchart(
|
||||
|
||||
|
||||
@app.get("/html5/projects/{project_id}/objects/context/{object_name}")
|
||||
async def html5_project_object_context(project_id: str, object_name: str) -> Response:
|
||||
async def html5_project_object_context(project_id: str, object_name: str, mode: str = "overview") -> Response:
|
||||
schema = await get_object_schema(project_id, object_name)
|
||||
impact = await get_object_impact(project_id, object_name)
|
||||
access = await get_object_access(project_id, object_name)
|
||||
@@ -1782,6 +1782,7 @@ async def html5_project_object_context(project_id: str, object_name: str) -> Res
|
||||
privacy,
|
||||
integrations,
|
||||
flowchart,
|
||||
mode,
|
||||
)
|
||||
flowchart_context = render_html5_flowchart(project_id, flowchart, focus=object_name, oob=True)
|
||||
source_context = render_html5_source(source_node, oob=True) if source_node is not None else ""
|
||||
|
||||
Reference in New Issue
Block a user