From 9f32a4ba5fac34db3a6cfb2fb3b789e152d561a2 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 26 Oct 2022 10:46:12 -0700 Subject: [PATCH] Add move to cluster confirmation (fix #120) --- src/components/frame/Tag.vue | 2 +- src/components/modal/FaceMoveModal.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/frame/Tag.vue b/src/components/frame/Tag.vue index 9283c2ef..97baa01f 100644 --- a/src/components/frame/Tag.vue +++ b/src/components/frame/Tag.vue @@ -6,7 +6,7 @@ isFace: isFace, }" :to="target" - @click="openTag(data)"> + @click.native="openTag(data)">
{{ data.count }}
{{ data.name }}
diff --git a/src/components/modal/FaceMoveModal.vue b/src/components/modal/FaceMoveModal.vue index 78e99290..73a65731 100644 --- a/src/components/modal/FaceMoveModal.vue +++ b/src/components/modal/FaceMoveModal.vue @@ -78,6 +78,10 @@ export default class FaceMoveModal extends Mixins(GlobalMixin) { const newName = face.name || face.fileid.toString(); + if (!confirm(this.t('memories', 'Are you sure you want to move the selected photos from {name} to {newName}?', { name, newName}))) { + return; + } + try { this.show = false; this.updateLoading(1);