swal(gettext('Error'),"[ "+name+" ]"+gettext("Being used by the asset, please unbind the asset first."),"error");
swal(gettext('Error'),"[ "+name+" ]"+gettext("Being used by the asset, please unbind the asset first."),"error");
};
};
APIUpdateAttr({
requestApi({
url:url,
url:url,
body:JSON.stringify(body),
body:JSON.stringify(body),
method:'DELETE',
method:'DELETE',
...
@@ -369,7 +369,7 @@ function orgDelete(obj, name, url, redirectTo){
...
@@ -369,7 +369,7 @@ function orgDelete(obj, name, url, redirectTo){
swal(gettext("Error")," [ "+name+" ] "+gettext("Do not perform this operation under this organization. Try again after switching to another organization"),"error");
swal(gettext("Error")," [ "+name+" ] "+gettext("Do not perform this operation under this organization. Try again after switching to another organization"),"error");
}
}
};
};
APIUpdateAttr({
requestApi({
url:url,
url:url,
body:JSON.stringify(body),
body:JSON.stringify(body),
method:'DELETE',
method:'DELETE',
...
@@ -1109,7 +1109,19 @@ function objectAttrsIsBool(obj, attrs) {
...
@@ -1109,7 +1109,19 @@ function objectAttrsIsBool(obj, attrs) {