Skip to content

Commit

Permalink
feat: add toastfication when change heuristics order
Browse files Browse the repository at this point in the history
Signed-off-by: FernandaCasali <[email protected]>
  • Loading branch information
FernandaCasali committed Apr 23, 2024
1 parent a1315ce commit 7902465
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/components/molecules/HeuristicsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ export default {
itemToMove.id = index - 1
itemAbove.id = index
this.$toast.warning(i18n.t('HeuristicsTable.messages.changeWeights'))
}
},
moveItemDown(index) {
Expand All @@ -773,6 +775,8 @@ export default {
itemToMove.id = index + 1
itemBelow.id = index
this.$toast.warning(i18n.t('HeuristicsTable.messages.changeWeights'))
}
},
deleteHeuristic(item) {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
"noHeuristics": "आपके पास कोई ह्यूरिस्टिक नहीं है, आगे बढ़ने के लिए एक बनाएं।",
"youMustHave": "आपने कुछ गलत टाइप किया होगा...",
"noHeuristicsDeleteAll": "क्षमा करें, लेकिन आप सभी ह्यूरिस्टिक प्रश्नों को हटा नहीं सकते",
"noCsvFileSelected": "कोई CSV फ़ाइल चयनित नहीं है। कृपया आगे बढ़ने से पहले एक का चयन करें।"
"noCsvFileSelected": "कोई CSV फ़ाइल चयनित नहीं है। कृपया आगे बढ़ने से पहले एक का चयन करें।",
"changeWeights": "ध्यान रखें कि अनुमानों के क्रम को बदलने से वजन स्वचालित रूप से नहीं बदलता है, आपको उन्हें मैन्युअल रूप से बदलना होगा।"
},
"validation": {
"nameRequired": "नाम अनिवार्य है",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const options = {
draggable: true,
pauseOnHover: true,
closeOnClick: true,
timeout: 3000,
timeout: 4000,
}
Vue.use(Toast, options)

Expand Down

0 comments on commit 7902465

Please sign in to comment.