Link HTML5 object selection to flowchart
This commit is contained in:
@@ -1751,7 +1751,7 @@ async def html5_project_flowchart(
|
||||
) -> Response:
|
||||
flowchart = await project_flowchart(project_id, focus=focus, depth=depth, limit=limit)
|
||||
return Response(
|
||||
render_html5_flowchart(project_id, flowchart),
|
||||
render_html5_flowchart(project_id, flowchart, focus=focus),
|
||||
media_type="text/html; charset=utf-8",
|
||||
)
|
||||
|
||||
@@ -1767,19 +1767,21 @@ async def html5_project_object_context(project_id: str, object_name: str) -> Res
|
||||
flowchart = await project_flowchart(project_id, focus=object_name, depth=1, limit=40)
|
||||
runtime = _runtime_for_object_context(project_id, impact)
|
||||
knowledge = _knowledge_for_object_context(schema, impact, ui)
|
||||
object_context = render_html5_object_context(
|
||||
project_id,
|
||||
schema,
|
||||
impact,
|
||||
access,
|
||||
ui,
|
||||
runtime,
|
||||
knowledge,
|
||||
privacy,
|
||||
integrations,
|
||||
flowchart,
|
||||
)
|
||||
flowchart_context = render_html5_flowchart(project_id, flowchart, focus=object_name, oob=True)
|
||||
return Response(
|
||||
render_html5_object_context(
|
||||
project_id,
|
||||
schema,
|
||||
impact,
|
||||
access,
|
||||
ui,
|
||||
runtime,
|
||||
knowledge,
|
||||
privacy,
|
||||
integrations,
|
||||
flowchart,
|
||||
),
|
||||
object_context + flowchart_context,
|
||||
media_type="text/html; charset=utf-8",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user