Fixed org deletion dialog

This commit is contained in:
Nicolai Ort 2021-02-18 17:01:08 +01:00
parent f086027910
commit a4c955ce85

View File

@ -35,22 +35,22 @@
let modal_open = false; let modal_open = false;
let delete_org = {}; let delete_org = {};
function deleteOrganization() { function deleteOrganization() {
// RunnerOrganizationService.runnerOrganizationControllerRemove( RunnerOrganizationService.runnerOrganizationControllerRemove(
// original.id, original.id,
// false false
// ) )
// .then((resp) => { .then((resp) => {
// Toastify({ Toastify({
// text: "Organization deleted", text: "Organization deleted",
// duration: 500, duration: 500,
// backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
// }).showToast(); }).showToast();
// location.replace("./"); location.replace("./");
// }) })
// .catch((err) => { .catch((err) => {
modal_open = true; modal_open = true;
delete_org = original; delete_org = original;
// }); });
} }
function submit() { function submit() {
if (data_loaded === true && save_enabled) { if (data_loaded === true && save_enabled) {