Added delete toast

This commit is contained in:
2023-04-12 19:05:57 +02:00
parent a4ebc7e126
commit e2ddb5a14c
3 changed files with 11 additions and 4 deletions

View File

@@ -28,8 +28,13 @@
}
};
})();
function submit() {
RunnerService.runnerControllerRemove(delete_runner.id, true);
async function submit() {
await RunnerService.runnerControllerRemove(delete_runner.id, true);
Toastify({
text: $_("runner-deleted"),
duration: 3500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
}
</script>