[Update] 用户列表添加移除操作(在其他组织中) (#3513)

* [Update] 用户列表添加移除操作(在其他组织中)

* [Update] 用户列表添加移除操作(在其他组织中)2
This commit is contained in:
BaiJiangJie
2019-12-09 11:50:52 +08:00
committed by GitHub
parent c5785e17aa
commit 16864ca34e
8 changed files with 151 additions and 88 deletions

View File

@@ -316,7 +316,7 @@ function requestApi(props) {
}
// Sweet Alert for Delete
function objectDelete(obj, name, url, redirectTo) {
function objectDelete(obj, name, url, redirectTo, title, success_message) {
function doDelete() {
var body = {};
var success = function () {
@@ -335,14 +335,14 @@ function objectDelete(obj, name, url, redirectTo) {
url: url,
body: JSON.stringify(body),
method: 'DELETE',
success_message: gettext("Delete the success"),
success_message: success_message || gettext("Delete the success"),
success: success,
error: fail
});
}
swal({
title: gettext('Are you sure about deleting it?'),
title: title || gettext('Are you sure about deleting it?'),
text: " [" + name + "] ",
type: "warning",
showCancelButton: true,