elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.3k stars 1.16k forks source link

elsa-workflow-instance-list-screen - Disable links to workflow-registry #2512

Open noxe opened 2 years ago

noxe commented 2 years ago

Hi,

i am using the elsa-workflow-instance-list-screen in our application - this list provides an hyperlink to filter by correlation id - but also has an link to the workflow-registry - which i dont use and also dont want to expose to the user - is there a way to disable the hyperlink?

<elsa-studio-root server-url="@serverUrl" monaco-lib-path="_content/Elsa.Designer.Components.Web/monaco-editor/min">
    <elsa-workflow-instance-list-screen workflow-id="@this.Model.WorkflowDefinitionId" />
</elsa-studio-root>
noxe commented 2 years ago

another problem i have is that my page is defined like this:

@page "/workflow-instances-list/{workflowdefinitionid?}"

<elsa-studio-root server-url="@serverUrl" monaco-lib-path="_content/Elsa.Designer.Components.Web/monaco-editor/min">
    <elsa-workflow-instance-list-screen workflow-id="@this.Model.WorkflowDefinitionId" />
</elsa-studio-root>

but the link for the correlation id is hardcoded to be like:

const correlationListViewUrl = ${basePath}/workflow-instances?correlationId=${correlationId};

any idea?

sfmskywalker commented 2 years ago

Indeed, we need to allow the component user to provide a path template.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

noxe commented 2 years ago

should not be stale :)