Skip to content
Snippets Groups Projects
Commit 9931d2a8 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/81-fix-arbitrary-workflow-view' into 'development'

Resolve "Fix arbitrary workflow view"

Closes #81

See merge request !77
parents aad11bb2 5881a73f
No related branches found
No related tags found
2 merge requests!84Remove development branch,!77Resolve "Fix arbitrary workflow view"
Pipeline #39971 passed
......@@ -106,7 +106,7 @@ function viewWorkflow() {
...workflow,
name: "",
short_description: "",
modes: workflowMode.modeEnabled ? [workflowMode.mode] : [],
modes: workflowMode.modeEnabled ? [{ ...workflowMode.mode }] : [],
token:
repositoryCredentials.token.length > 0
? repositoryCredentials.token
......
......@@ -151,9 +151,11 @@ class GithubRepository extends GitRepository {
`https://raw.githubusercontent.com/${this.account}/${this.repoName}/${this.gitCommitHash}/${filepath}`,
);
}
return (await this.httpClient.get(this.fileUrl(filepath))).data[
"download_url"
];
return (
await this.httpClient.get(
this.fileUrl(filepath) + `&time=${new Date().getTime()}`,
)
).data["download_url"];
}
}
......
......@@ -9,6 +9,7 @@ import { Toast } from "bootstrap";
import { useWorkflowStore } from "@/stores/workflows";
import type { WorkflowIn } from "@/client/workflow";
import { useWorkflowExecutionStore } from "@/stores/workflowExecutions";
import ParameterSchemaFormComponent from "@/components/parameter-schema/ParameterSchemaFormComponent.vue";
const props = defineProps<{
wid: string;
......@@ -61,7 +62,7 @@ function downloadVersionFiles() {
workflowState.usageMarkdown = response.data;
} else if (file.includes("output")) {
workflowState.outputMarkdown = response.data;
} else {
} else if (file.endsWith("json")) {
workflowState.parameterSchema = response.data;
}
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment