From 7d9c378608d9bdf2387d3bf96692afc7ae75a806 Mon Sep 17 00:00:00 2001 From: David Mears Date: Tue, 3 Sep 2024 11:58:08 +0100 Subject: [PATCH 01/20] WIP 2: things related to post-form-submit, ie api and store --- components/ParameterForm.vue | 35 ++++++++++++++++++++++++++++--- server/api/scenarios.post.ts | 24 +++++++++++++++++++++ stores/scenario.ts | 6 ++++++ types/daedalusApiResponseTypes.ts | 9 +++++++- 4 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 server/api/scenarios.post.ts create mode 100644 stores/scenario.ts diff --git a/components/ParameterForm.vue b/components/ParameterForm.vue index 902936c3..b95f1df8 100644 --- a/components/ParameterForm.vue +++ b/components/ParameterForm.vue @@ -67,11 +67,16 @@ color="primary" :size="largeScreen ? 'lg' : undefined" type="submit" + :disabled="formSubmitting" > Run + @@ -84,8 +89,8 @@ + + diff --git a/pages/scenarios/new.vue b/pages/scenarios/new.vue index 249b9af2..c9f2b665 100644 --- a/pages/scenarios/new.vue +++ b/pages/scenarios/new.vue @@ -16,7 +16,7 @@