From 2afd4f7949aaff609567dd07a8e1409ccffbd196 Mon Sep 17 00:00:00 2001 From: henrychoy Date: Mon, 7 Oct 2024 23:07:03 -0400 Subject: [PATCH] feat: save plugin files form --- src/frontend/src/stores/LoginStore.ts | 3 +- src/frontend/src/views/CreatePluginFile.vue | 138 +++++++++++++++----- 2 files changed, 107 insertions(+), 34 deletions(-) diff --git a/src/frontend/src/stores/LoginStore.ts b/src/frontend/src/stores/LoginStore.ts index fbb66b4f9..8e0bcd6f7 100644 --- a/src/frontend/src/stores/LoginStore.ts +++ b/src/frontend/src/stores/LoginStore.ts @@ -40,7 +40,8 @@ export const useLoginStore = defineStore('login', () => { const savedForms = ref({ - jobs: {} + jobs: {}, + files: {}, }) diff --git a/src/frontend/src/views/CreatePluginFile.vue b/src/frontend/src/views/CreatePluginFile.vue index 4bd73a97a..81e23e927 100644 --- a/src/frontend/src/views/CreatePluginFile.vue +++ b/src/frontend/src/views/CreatePluginFile.vue @@ -62,7 +62,7 @@
Plugin Tasks {{ `${param.name}` }} @@ -118,7 +118,7 @@ clickable removable @click="handleSelectedParam('edit', props, i, 'outputParams'); showEditParamDialog = true" - @remove="tasks[props.rowIndex].outputParams.splice(i, 1)" + @remove="pluginFile.tasks[props.rowIndex].outputParams.splice(i, 1)" :label="`${param.name}: ${pluginParameterTypes.filter((type) => type.id === param.parameterType)[0]?.name}`" /> + > + Add Input Param + + Add Input Param + + @@ -246,24 +251,22 @@ style="height: 10px" class="q-mr-sm" @click="addOutputParam()" - /> + > + Add Output Param + + Add Output Param + + - - - Add Task - - Add Task - - + /> @@ -306,6 +309,7 @@ color="negative" label="Cancel" class="q-mr-lg" + @click="confirmLeave = true" /> @@ -343,11 +347,21 @@ @updateParam="updateParam" @addParam="addParam" /> + + \ No newline at end of file