Skip to content

Commit f9ec53c

Browse files
committed
Fix click to edit link
Fixes #20689. To test try https://iwc.galaxyproject.org/workflow/annotation-helixer-main/ with the client devserver pointing to usegalaxy.org
1 parent 9608020 commit f9ec53c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

client/src/components/Workflow/Run/WorkflowRun.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ const workflowModel: any = ref(null);
6464
const owner = ref<string>();
6565
6666
const 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+
});
7074
const historyStatusKey = computed(() => `${currentHistoryId.value}_${lastUpdateTime.value}`);
7175
const isOwner = computed(() => userStore.matchesCurrentUsername(owner.value));
7276
const lastUpdateTime = computed(() => historyItemsStore.lastUpdateTime);

0 commit comments

Comments
 (0)