From c1f847c4a7b3ce5efd08f2fc3e204e68f44ca692 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 | 115 ++++++++++++++++++++++ src/components/SaveSession.vue | 1 + src/components/SegmentGroupControls.vue | 25 ++++- src/io/readWriteImage.ts | 39 ++++++++ src/store/segmentGroups.ts | 41 +------- 5 files changed, 180 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..5066de9cc --- /dev/null +++ b/src/components/SaveSegmentGroupDialog.vue @@ -0,0 +1,115 @@ + + + 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 @@