-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added links to workflow defintions (#93)
* Implemented navigation to workflow definition * Fixed bug
- Loading branch information
1 parent
4c74e33
commit 4d3d393
Showing
9 changed files
with
132 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Elsa.Studio.Models; | ||
|
||
public record DataPanelItem(string? Text = default, string? Link = default); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
...efinitionEditor/Components/WorkflowProperties/Tabs/Properties/Sections/Info/Info.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
using Elsa.Api.Client.Resources.WorkflowDefinitions.Models; | ||
using Elsa.Studio.Models; | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace Elsa.Studio.Workflows.Components.WorkflowDefinitionEditor.Components.WorkflowProperties.Tabs.Properties.Sections.Info; | ||
namespace Elsa.Studio.Workflows.Components.WorkflowDefinitionEditor.Components.WorkflowProperties.Tabs.Properties. | ||
Sections.Info; | ||
|
||
public partial class Info | ||
{ | ||
private IDictionary<string, string> _workflowInfo = new Dictionary<string, string>(); | ||
private IDictionary<string, DataPanelItem> _workflowInfo = new Dictionary<string, DataPanelItem>(); | ||
|
||
[Parameter] public WorkflowDefinition WorkflowDefinition { get; set; } = default!; | ||
|
||
protected override void OnParametersSet() | ||
{ | ||
_workflowInfo = new Dictionary<string, string> | ||
_workflowInfo = new Dictionary<string, DataPanelItem> | ||
{ | ||
["Definition ID"] = WorkflowDefinition.DefinitionId, | ||
["Version ID"] = WorkflowDefinition.Id, | ||
["Version"] = WorkflowDefinition.Version.ToString(), | ||
["Status"] = WorkflowDefinition.IsPublished ? "Published" : "Draft", | ||
["Readonly"] = WorkflowDefinition.IsReadonly ? "Yes" : "No" | ||
["Definition ID"] = new(WorkflowDefinition.DefinitionId), | ||
["Version ID"] = new(WorkflowDefinition.Id), | ||
["Version"] = new(WorkflowDefinition.Version.ToString()), | ||
["Status"] = new(WorkflowDefinition.IsPublished ? "Published" : "Draft"), | ||
["Readonly"] = new(WorkflowDefinition.IsReadonly ? "Yes" : "No") | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.