diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js index 6694c87161..7e7a4098ab 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/clients.js @@ -683,6 +683,10 @@ module.controller('ClientListCtrl', function($scope, realm, clients, Client, ser }); }); }; + + $scope.exportClient = function(client) { + saveAs(new Blob([angular.toJson(client, 4)], { type: 'application/json' }), client.clientId + '.json'); + } }); module.controller('ClientInstallationCtrl', function($scope, realm, client, serverInfo, ClientInstallation,$http, $routeParams) { diff --git a/themes/src/main/resources/theme/base/admin/resources/partials/client-list.html b/themes/src/main/resources/theme/base/admin/resources/partials/client-list.html index 9f0877641e..9bc8c95f30 100755 --- a/themes/src/main/resources/theme/base/admin/resources/partials/client-list.html +++ b/themes/src/main/resources/theme/base/admin/resources/partials/client-list.html @@ -7,7 +7,7 @@
+ |
@@ -29,7 +29,7 @@
{{:: 'client-id' | translate}} |
{{:: 'enabled' | translate}} |
{{:: 'base-url' | translate}} |
- {{:: 'actions' | translate}} |
+ {{:: 'actions' | translate}} |
| + | + + |
---|