From 50798d995d569ea9a159906f5be309d7b03a75f4 Mon Sep 17 00:00:00 2001 From: Mingliang Tao Date: Mon, 1 Mar 2021 16:23:20 +0800 Subject: [PATCH] Add type `template` and isPrivate `true` when saving from submission page (#5328) --- .../src/app/job-submission/components/submission-section.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webportal/src/app/job-submission/components/submission-section.jsx b/src/webportal/src/app/job-submission/components/submission-section.jsx index 16a0c424c..fc57a6f11 100644 --- a/src/webportal/src/app/job-submission/components/submission-section.jsx +++ b/src/webportal/src/app/job-submission/components/submission-section.jsx @@ -207,6 +207,8 @@ export const SubmissionSection = props => { template.description = templateDescription; template.protocol = protocol.toYaml(); template.source = 'pai'; + template.type = 'template'; + template.isPrivate = true; template.author = user; try { await createTemplate(template);