From 0e8e30429d4d5bfaca59090c226ac0f4cacf446e Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 14 Dec 2023 16:10:19 -0500 Subject: [PATCH] feat(SegmentGroupControls): add export button --- src/components/ExportSegmentGroupDialog.vue | 120 ++++++++++++++++++++ src/components/SaveSession.vue | 1 + src/components/SegmentGroupControls.vue | 25 +++- src/io/readWriteImage.ts | 39 +++++++ src/store/segmentGroups.ts | 41 +------ 5 files changed, 185 insertions(+), 41 deletions(-) create mode 100644 src/components/ExportSegmentGroupDialog.vue create mode 100644 src/io/readWriteImage.ts diff --git a/src/components/ExportSegmentGroupDialog.vue b/src/components/ExportSegmentGroupDialog.vue new file mode 100644 index 000000000..741a3b34b --- /dev/null +++ b/src/components/ExportSegmentGroupDialog.vue @@ -0,0 +1,120 @@ + + + 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..2f0a92ca5 100644 --- a/src/components/SegmentGroupControls.vue +++ b/src/components/SegmentGroupControls.vue @@ -1,5 +1,7 @@