Skip to content

Commit

Permalink
chore(ui): added confirmation dialog for logs deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored and loicmathieu committed Jul 29, 2024
1 parent 71a937d commit 763aeb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/src/components/logs/LogsWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@
});
},
deleteLogs() {
this.$store.dispatch("log/deleteLogs", {
namespace: this.namespace,
flowId: this.flowId
})
this.$toast().confirm(
this.$t("delete_all_logs"),
() => this.$store.dispatch("log/deleteLogs", {namespace: this.namespace, flowId: this.flowId}),
() => {}
)
}
},
};
Expand Down
1 change: 1 addition & 0 deletions ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
"copy logs": "Copy logs",
"download logs": "Download logs",
"delete logs": "Delete logs",
"delete_all_logs": "Are you sure you want to delete all logs?",
"toggle fullscreen": "Toggle fullscreen",
"copied": "Copied",
"tags": "Tags",
Expand Down
1 change: 1 addition & 0 deletions ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
"copy logs": "Copier les logs",
"download logs": "Télécharger les logs",
"delete logs": "Supprimer les logs",
"delete_all_logs": "Êtes-vous sûr de vouloir supprimer tous les journaux ?",
"toggle fullscreen": "Permuter le plein écran",
"copied": "Copié",
"tags": "Tags",
Expand Down

0 comments on commit 763aeb1

Please sign in to comment.