mirror of https://github.com/jumpserver/jumpserver
[Update] 清除系统用户认证信息时提示
parent
b03ac46df9
commit
8bfd2be21f
|
@ -337,10 +337,22 @@ $(document).ready(function () {
|
||||||
});
|
});
|
||||||
}).on('click', '.btn-clear-auth', function () {
|
}).on('click', '.btn-clear-auth', function () {
|
||||||
var the_url = '{% url "api-assets:system-user-auth-info" pk=system_user.id %}';
|
var the_url = '{% url "api-assets:system-user-auth-info" pk=system_user.id %}';
|
||||||
APIUpdateAttr({
|
var name = '{{ system_user.name }}';
|
||||||
url: the_url,
|
swal({
|
||||||
method: 'DELETE',
|
title: '你确定清除该系统用户的认证信息吗 ?',
|
||||||
success_message: "{% trans 'Clear auth' %}" + " {% trans 'success' %}"
|
text: " [" + name + "] ",
|
||||||
|
type: "warning",
|
||||||
|
showCancelButton: true,
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
confirmButtonColor: "#ed5565",
|
||||||
|
confirmButtonText: '确认',
|
||||||
|
closeOnConfirm: true
|
||||||
|
}, function () {
|
||||||
|
APIUpdateAttr({
|
||||||
|
url: the_url,
|
||||||
|
method: 'DELETE',
|
||||||
|
success_message: "{% trans 'Clear auth' %}" + " {% trans 'success' %}"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue