From 3ee9b5222e9ff96ebf49c96a08c5f3c7e8554fdb Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 14 Dec 2023 16:10:19 -0500 Subject: [PATCH] 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 cfeebec56..e494eaf46 100644 --- a/src/components/SegmentGroupControls.vue +++ b/src/components/SegmentGroupControls.vue @@ -1,5 +1,7 @@