From 96fe0d4db39e2b40ba0e1308d5eced7718e8448c Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 18 Jul 2021 14:37:01 +0200 Subject: [PATCH] Update dashboard apps with updated designer component constructs --- src/dashboards/ElsaDashboard/Pages/_Host.cshtml | 6 ++++-- .../Elsa.Designer.Components.Web/WorkflowEditor.razor | 7 ++++++- .../Elsa.Designer.Components.Web/WorkflowStudio.razor | 4 +++- .../Pages/_Host.cshtml | 6 ++++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml index 08f28dfa4..3b2b0fb71 100644 --- a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml +++ b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml @@ -16,7 +16,9 @@ - - + + + + \ No newline at end of file diff --git a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowEditor.razor b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowEditor.razor index 8c32f2c01..afb4836c7 100644 --- a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowEditor.razor +++ b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowEditor.razor @@ -1,12 +1,17 @@ @using Microsoft.JSInterop @inject IJSRuntime JS; - + + + @code{ [Parameter] public string ServerUrl { get; set; } = default!; + + [Parameter] + public string MonacoLibPath { get; set; } = "_content/Elsa.Designer.Components.Web/monaco-editor/min"; [Parameter] public string WorkflowDefinitionId { get; set; } = default!; diff --git a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowStudio.razor b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowStudio.razor index ae0315437..088fb6d22 100644 --- a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowStudio.razor +++ b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/WorkflowStudio.razor @@ -1,4 +1,6 @@ - + + + @code{ diff --git a/src/samples/dashboard/aspnetcore/ElsaDashboard.Samples.AspNetCore.Monolith/Pages/_Host.cshtml b/src/samples/dashboard/aspnetcore/ElsaDashboard.Samples.AspNetCore.Monolith/Pages/_Host.cshtml index 7f66b69cc..3aa413252 100644 --- a/src/samples/dashboard/aspnetcore/ElsaDashboard.Samples.AspNetCore.Monolith/Pages/_Host.cshtml +++ b/src/samples/dashboard/aspnetcore/ElsaDashboard.Samples.AspNetCore.Monolith/Pages/_Host.cshtml @@ -17,7 +17,9 @@ - - + + + + \ No newline at end of file