From 6dfe1c3c8af079d32cc056f435127dc9c54682c6 Mon Sep 17 00:00:00 2001
From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com>
Date: Tue, 3 Jan 2023 12:01:00 -0400
Subject: [PATCH] validate before closing (#680)
* validate before closing
* Update en.js
---
src/lang/en.js | 12 +++-
src/lang/es.js | 12 +++-
src/layout/components/TagsView/index.vue | 75 ++++++++++++++++++++++--
3 files changed, 91 insertions(+), 8 deletions(-)
diff --git a/src/lang/en.js b/src/lang/en.js
index ae221ba81ad..c0a29764929 100644
--- a/src/lang/en.js
+++ b/src/lang/en.js
@@ -163,7 +163,17 @@ export default {
refresh: 'Refresh',
close: 'Close',
closeOthers: 'Close Others',
- closeAll: 'Close All'
+ closeAll: 'Close All',
+ table: {
+ label: 'Close the window',
+ tab: 'Tab',
+ field: 'Field',
+ value: 'Value'
+ },
+ buttonClose: {
+ discardChanges: 'Discard Changes',
+ returnToWindow: 'Return to Window'
+ }
},
settings: {
title: 'Page style setting',
diff --git a/src/lang/es.js b/src/lang/es.js
index 8187bfe7061..c262c9a4f03 100755
--- a/src/lang/es.js
+++ b/src/lang/es.js
@@ -163,7 +163,17 @@ export default {
refresh: 'Actualizar',
close: 'Cerrar',
closeOthers: 'Cerrar otros',
- closeAll: 'Cerrar todos'
+ closeAll: 'Cerrar todos',
+ table: {
+ label: 'Cerrar Ventana',
+ tab: 'PestaƱa',
+ field: 'Campo',
+ value: 'Valor'
+ },
+ buttonClose: {
+ discardChanges: 'Descartar Cambios',
+ returnToWindow: 'Regresar a la Ventana'
+ }
},
settings: {
title: 'Page style setting',
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index b6af7354685..c72cd27e49a 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -24,14 +24,14 @@
}"
tag="span"
class="tags-view-item"
- @click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''"
+ @click.middle.native="!isAffix(tag) ? closeValidateTag(tag) : ''"
@contextmenu.prevent.native="openMenu(tag,$event)"
>