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