From 681c250e437517c65ce363f31907eddd23bf3836 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 17 Feb 2024 15:57:03 -0600 Subject: [PATCH] Add "Keep Both" button --- src/components/Modal.vue | 4 +- src/components/saves/CloudSaveResolver.vue | 98 +++++++++++++++------- 2 files changed, 72 insertions(+), 30 deletions(-) diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 2f36101..95f3ec8 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -46,7 +46,7 @@ import Context from "./Context.vue"; const _props = defineProps<{ modelValue: boolean; - closable?: boolean; + preventClosing?: boolean; width?: string; }>(); const props = toRefs(_props); @@ -56,7 +56,7 @@ const emit = defineEmits<{ const isOpen = computed(() => unref(props.modelValue) || isAnimating.value); function close() { - if (unref(props.closable) !== false) { + if (unref(props.preventClosing) !== true) { emit("update:modelValue", false); } } diff --git a/src/components/saves/CloudSaveResolver.vue b/src/components/saves/CloudSaveResolver.vue index ae4c0c9..2c0188a 100644 --- a/src/components/saves/CloudSaveResolver.vue +++ b/src/components/saves/CloudSaveResolver.vue @@ -1,5 +1,5 @@