mirror of
https://github.com/goauthentik/authentik.git
synced 2026-08-30 18:51:39 -07:00
Shorten the 'requirements' language so it all fits on the page.
This commit is contained in:
@@ -56,8 +56,8 @@ function edgeLabel(edge: DiagramEdge, target?: DiagramNode): string {
|
||||
.with(D.Proceed, () => "")
|
||||
.with(D.PolicyPassed, () => msg("Policy passed"))
|
||||
.with(D.PolicyDenied, () => msg("Policy denied"))
|
||||
.with(D.RequirementFulfilled, () => msg("Requirement fulfilled"))
|
||||
.with(D.RequirementUnfulfilled, () => msg("Requirement not fulfilled"))
|
||||
.with(D.RequirementFulfilled, () => msg("Requirement Met"))
|
||||
.with(D.RequirementUnfulfilled, () => msg("Denied"))
|
||||
.with(D.Binding, () => (order ? msg(str`Binding: ${order}`) : ""))
|
||||
.with(D.UnknownDefaultOpenApi, () => "")
|
||||
.exhaustive();
|
||||
@@ -86,5 +86,8 @@ export function compileFlowGraph(graph: FlowDiagram): CompiledFlowGraph {
|
||||
];
|
||||
|
||||
const nodes = new Map(graph.nodes.map((node, index) => [`n${index}`, node] as const));
|
||||
return { diagram: lines.join("\n"), nodes };
|
||||
return {
|
||||
diagram: lines.join("\n"),
|
||||
nodes,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user