File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
client/src/components/Workflow/Run Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,13 @@ const workflowModel: any = ref(null);
6464const owner = ref <string >();
6565
6666const currentHistoryId = computed (() => historyStore .currentHistoryId );
67- const editorLink = computed (
68- () => ` /workflows/edit?id=${props .workflowId }${props .version ? ` &version=${props .version } ` : " " } `
69- );
67+ const editorLink = computed (() => {
68+ const queryArgs = {
69+ [props .instance ? " workflow_id" : " id" ]: props .workflowId ,
70+ ... (props .version && { version: props .version }),
71+ };
72+ return router .resolve ({ path: " /workflows/edit" , query: queryArgs }).href ;
73+ });
7074const historyStatusKey = computed (() => ` ${currentHistoryId .value }_${lastUpdateTime .value } ` );
7175const isOwner = computed (() => userStore .matchesCurrentUsername (owner .value ));
7276const lastUpdateTime = computed (() => historyItemsStore .lastUpdateTime );
You can’t perform that action at this time.
0 commit comments