Browse Source

[Update] 修复API-key不能删除的问题

pull/4008/head
Bai 5 years ago
parent
commit
be3fdac8a9
  1. 13
      apps/authentication/templates/authentication/_access_key_modal.html

13
apps/authentication/templates/authentication/_access_key_modal.html

@ -135,6 +135,19 @@ $(document).ready(function () {
}
};
requestApi(data)
}).on('click', '.btn-api-keydel', function (){
var url = "{% url "api-auth:access-key-detail" pk=DEFAULT_PK %}";
url = url.replace("{{ DEFAULT_PK }}", $(this).data("id")) ;
var data = {
url: url,
method: "DELETE",
success: function () {
ak_table.ajax.reload();
},
success_message: "{% trans 'Delete success' %}"
};
requestApi(data)
})
</script>
{% endblock %}

Loading…
Cancel
Save