Added delete toast

This commit is contained in:
niggl committed 2023-04-12 19:05:57 +02:00
1 parent a4ebc7e126
commit e2ddb5a14c
3 files changed
+11 -4

No files matched your search

@@ -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>