From edf8cd736ef4e744c154615fe0cc0f773b1bd50f Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 7 Jun 2016 12:48:12 +0200 Subject: [PATCH] Add modal for client removal --- webadmin/src/views/account.html | 25 +++++++++++++++++++++++-- webadmin/src/views/account.js | 19 +++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/webadmin/src/views/account.html b/webadmin/src/views/account.html index 9160046e2..8349dea77 100644 --- a/webadmin/src/views/account.html +++ b/webadmin/src/views/account.html @@ -142,6 +142,24 @@ + + +
@@ -198,7 +216,9 @@
-

{{client.name}} on {{client.location}}{{ config.isCustomDomain ? '.' : '-' }}{{config.fqdn}}

+

+ {{client.name}} on {{client.location}}{{ config.isCustomDomain ? '.' : '-' }}{{config.fqdn}} +

@@ -212,9 +232,10 @@

Credentials

-

Permissions: {{ client.scope }}

+

Scope: {{ client.scope }}

Client ID: {{ client.id }}

Client Secret: {{ client.clientSecret }}

+
diff --git a/webadmin/src/views/account.js b/webadmin/src/views/account.js index 629985894..bd075a707 100644 --- a/webadmin/src/views/account.js +++ b/webadmin/src/views/account.js @@ -205,6 +205,25 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat } }; + $scope.clientRemove = { + busy: false, + client: {}, + + show: function (client) { + $scope.clientRemove.busy = true; + $scope.clientRemove.client = client; + $('#clientRemoveModal').modal('show'); + }, + + submit: function () { + $scope.clientRemove.busy = true; + + $scope.clientRemove.busy = false; + + $('#clientRemoveModal').modal('hide'); + } + }; + $scope.removeAccessTokens = function (client) { client.busy = true;