Hide api token ui behind 'tokens' query and ensure button sizes are consistent

This commit is contained in:
Johannes Zellner
2019-11-07 12:08:51 +01:00
parent 3a0c29988e
commit c6d2e6cda3
2 changed files with 50 additions and 53 deletions

View File

@@ -4,7 +4,7 @@
/* global angular:false */
/* global $:false */
angular.module('Application').controller('ProfileController', ['$scope', 'Client', function ($scope, Client) {
angular.module('Application').controller('ProfileController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
@@ -12,6 +12,7 @@ angular.module('Application').controller('ProfileController', ['$scope', 'Client
$scope.activeClients = [];
$scope.webadminClient = {};
$scope.apiClient = {};
$scope.showApiTokens = !!$location.search().tokens;
$scope.twoFactorAuthentication = {
busy: false,