From 79024654cbaa285680e813c63645811835ad7ec6 Mon Sep 17 00:00:00 2001 From: FernandaCasali Date: Tue, 23 Apr 2024 13:08:16 -0300 Subject: [PATCH] feat: add toastfication when change heuristics order Signed-off-by: FernandaCasali --- src/components/molecules/HeuristicsTable.vue | 4 ++++ src/locales/en.json | 3 ++- src/locales/es.json | 3 ++- src/locales/hi.json | 3 ++- src/locales/pt_br.json | 3 ++- src/main.js | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/molecules/HeuristicsTable.vue b/src/components/molecules/HeuristicsTable.vue index 3d5fc5e0..31411a86 100644 --- a/src/components/molecules/HeuristicsTable.vue +++ b/src/components/molecules/HeuristicsTable.vue @@ -755,6 +755,8 @@ export default { itemToMove.id = index - 1 itemAbove.id = index + + this.$toast.warning(i18n.t('HeuristicsTable.messages.changeWeights')) } }, moveItemDown(index) { @@ -773,6 +775,8 @@ export default { itemToMove.id = index + 1 itemBelow.id = index + + this.$toast.warning(i18n.t('HeuristicsTable.messages.changeWeights')) } }, deleteHeuristic(item) { diff --git a/src/locales/en.json b/src/locales/en.json index e77f954c..612913f3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -140,7 +140,8 @@ "noHeuristics": "You don't have any heuristic, create one to proceed.", "youMustHave": "You must have typen something wrong...", "noHeuristicsDeleteAll": "Sorry, but you can't delete all heuristics questions", - "noCsvFileSelected": "No CSV file selected. Please select one before proceeding." + "noCsvFileSelected": "No CSV file selected. Please select one before proceeding.", + "changeWeights": "Be aware that by changing the order of the heuristics, the weights do not change automatically, you must change them manually." }, "validation": { "nameRequired": "Name is mandatory", diff --git a/src/locales/es.json b/src/locales/es.json index fbe36f77..afbea2a2 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -140,7 +140,8 @@ "noHeuristics": "No tienes ninguna heurística, crea una para continuar.", "youMustHave": "Debes haber escrito algo mal...", "noHeuristicsDeleteAll": "Lo siento, pero no puedes eliminar todas las preguntas de heurísticas", - "noCsvFileSelected": "No se ha seleccionado ningún archivo CSV. Por favor, selecciona uno antes de continuar." + "noCsvFileSelected": "No se ha seleccionado ningún archivo CSV. Por favor, selecciona uno antes de continuar.", + "changeWeights": "Tenga en cuenta que al cambiar el orden de las heurísticas, los pesos no cambian automáticamente, debe cambiarlos manualmente." }, "validation": { "nameRequired": "El nombre es obligatorio", diff --git a/src/locales/hi.json b/src/locales/hi.json index 3bbea376..9f3e6cd1 100644 --- a/src/locales/hi.json +++ b/src/locales/hi.json @@ -140,7 +140,8 @@ "noHeuristics": "आपके पास कोई ह्यूरिस्टिक नहीं है, आगे बढ़ने के लिए एक बनाएं।", "youMustHave": "आपने कुछ गलत टाइप किया होगा...", "noHeuristicsDeleteAll": "क्षमा करें, लेकिन आप सभी ह्यूरिस्टिक प्रश्नों को हटा नहीं सकते", - "noCsvFileSelected": "कोई CSV फ़ाइल चयनित नहीं है। कृपया आगे बढ़ने से पहले एक का चयन करें।" + "noCsvFileSelected": "कोई CSV फ़ाइल चयनित नहीं है। कृपया आगे बढ़ने से पहले एक का चयन करें।", + "changeWeights": "ध्यान रखें कि अनुमानों के क्रम को बदलने से वजन स्वचालित रूप से नहीं बदलता है, आपको उन्हें मैन्युअल रूप से बदलना होगा।" }, "validation": { "nameRequired": "नाम अनिवार्य है", diff --git a/src/locales/pt_br.json b/src/locales/pt_br.json index 283586d3..c3d62750 100644 --- a/src/locales/pt_br.json +++ b/src/locales/pt_br.json @@ -140,7 +140,8 @@ "noHeuristics": "Você não tem nenhuma heurística, crie uma para continuar.", "youMustHave": "Você deve ter digitado algo errado...", "noHeuristicsDeleteAll": "Desculpe, mas você não pode excluir todas as perguntas de heurísticas", - "noCsvFileSelected": "Nenhum arquivo CSV selecionado. Por favor, selecione um antes de continuar." + "noCsvFileSelected": "Nenhum arquivo CSV selecionado. Por favor, selecione um antes de continuar.", + "changeWeights": "Esteja ciente que alterando a ordem das heuristicas, os pesos não mudam automaticamente, você deve alterá-los manualmente." }, "validation": { "nameRequired": "Nome é requerido", diff --git a/src/main.js b/src/main.js index a22082c7..d61dbe2a 100644 --- a/src/main.js +++ b/src/main.js @@ -15,7 +15,7 @@ const options = { draggable: true, pauseOnHover: true, closeOnClick: true, - timeout: 3000, + timeout: 4000, } Vue.use(Toast, options)