From e9a6d7dcbafbb435fc712fc2b7aae74ac5f44f90 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 14 Dec 2023 16:10:19 -0500 Subject: [PATCH 1/7] feat(SegmentGroupControls): add save button --- src/components/SaveSegmentGroupDialog.vue | 93 +++++++++++++++++++++++ src/components/SaveSession.vue | 1 + src/components/SegmentGroupControls.vue | 25 +++++- src/io/readWriteImage.ts | 39 ++++++++++ src/store/segmentGroups.ts | 41 +--------- 5 files changed, 158 insertions(+), 41 deletions(-) create mode 100644 src/components/SaveSegmentGroupDialog.vue create mode 100644 src/io/readWriteImage.ts diff --git a/src/components/SaveSegmentGroupDialog.vue b/src/components/SaveSegmentGroupDialog.vue new file mode 100644 index 000000000..579a6e97a --- /dev/null +++ b/src/components/SaveSegmentGroupDialog.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/components/SaveSession.vue b/src/components/SaveSession.vue index f2c999f41..ad2710b35 100644 --- a/src/components/SaveSession.vue +++ b/src/components/SaveSession.vue @@ -64,6 +64,7 @@ export default defineComponent({ } onMounted(() => { + // triggers form validation check so can immediately save with default value fileName.value = DEFAULT_FILENAME; }); diff --git a/src/components/SegmentGroupControls.vue b/src/components/SegmentGroupControls.vue index 56e77597b..eddf6cdd0 100644 --- a/src/components/SegmentGroupControls.vue +++ b/src/components/SegmentGroupControls.vue @@ -1,5 +1,7 @@