replace alert bodals with toasts

This commit is contained in:
2022-12-09 00:51:26 +02:00
parent 2d5b73c6dc
commit 7df4adfc9d
13 changed files with 89 additions and 101 deletions

View File

@ -81,10 +81,11 @@
contentType: "application/json",
success: _ => {
keyImportModal.modal("hide");
showSuccess("Success", `Key ${key} has been imported`, "");
showSuccess("Success", `Key ${key} has been imported`);
},
error: (jqXHR, _, errorThrown) => {
showFailure("Action failed", `Could not import key ${key} from ${server}`, errorThrown);
const message = _ => { return `Could not import key ${key} from ${server}`; };
showFailure("Action failed", message, jqXHR, errorThrown);
},
});
}