mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 17:30:30 +00:00
[Update] 用户列表添加移除操作(在其他组织中) (#3513)
* [Update] 用户列表添加移除操作(在其他组织中) * [Update] 用户列表添加移除操作(在其他组织中)2
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user