Add Copy functionality and corresponding toasts

This commit is contained in:
2023-04-28 12:40:28 +02:00
parent c9cbd24569
commit b76fcfd8e4
4 changed files with 46 additions and 18 deletions

View File

@ -59,7 +59,13 @@ function requestDeletionAsUser(id) {
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(result) {
bootbox.alert("Eintrag zurückgezogen!")
toast = {
title: "Erfolgreich zurückgezogen",
message: "Eintrag wurde gelöscht",
status: TOAST_STATUS.SUCCESS,
timeout: 5000
}
Toast.create(toast);
location.reload()
}
})