Add API Management to admin CP

This commit is contained in:
Dane Everitt 2016-01-16 19:56:48 -05:00
parent ade16e64c8
commit 3e595ca856
9 changed files with 395 additions and 4 deletions

View file

@ -61,8 +61,10 @@ $(document).ready(function () {
text: 'Once this API key is revoked any applications currently using it will stop working.',
showCancelButton: true,
allowOutsideClick: true,
closeOnConfirm: false,
confirmButtonText: 'Revoke',
confirmButtonColor: '#d9534f',
showLoaderOnConfirm: true
}, function () {
$.ajax({
method: 'DELETE',
@ -73,6 +75,8 @@ $(document).ready(function () {
}).done(function (data) {
swal({
type: 'success',
title: '',
text: 'API Key has been revoked.'
});
self.parent().parent().slideUp();
}).fail(function (jqXHR) {