Special handling for better ui for sdk tokens

This commit is contained in:
Johannes Zellner
2016-06-08 11:55:40 +02:00
parent e431bd6040
commit 401c0e1b44
2 changed files with 33 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ angular.module('Application').controller('TokensController', ['$scope', 'Client'
$scope.config = Client.getConfig();
$scope.activeClients = [];
$scope.apiClient = {};
$scope.tokenInUse = null;
$scope.clientAdd = {
@@ -146,6 +147,9 @@ angular.module('Application').controller('TokensController', ['$scope', 'Client'
$scope.activeClients = activeClients;
$scope.activeClients.forEach(refreshClientTokens);
$scope.activeClients = activeClients.filter(function (c) { return c.id !== 'cid-sdk'; });
$scope.apiClient = activeClients.filter(function (c) { return c.id === 'cid-sdk'; })[0];
});
}