diff --git a/src/views/profile.html b/src/views/profile.html
index def30a76c..8f51b4fc8 100644
--- a/src/views/profile.html
+++ b/src/views/profile.html
@@ -277,8 +277,8 @@
-
-
+
+
|
@@ -287,61 +287,57 @@
-
-
-
-
API Tokens
-
-
-
-
-
-
-
-
These tokens can be used to access the Cloudron API.
-
-
-
- | Name |
- Actions |
-
-
-
-
- |
- {{ token.name || '-' }}
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
Sessions
-
-
-
-
You are logged into {{ activeClients.length + 1 }} app(s), including this session.
-
-
- Active Apps:
- {{ client.name }} - {{client.activeTokens.length}} time(s)
-
-
-
-
-
+
+
+
+
You are logged into {{ activeClients.length + 1 }} app(s), including this session.
+
+
+ Active Sessions:
+ {{ client.name }} - {{client.activeTokens.length}} time(s)
+
+
+
+
+
+
+
+
+
API Tokens
+
+
+
+
+
+
+
+
These tokens can be used to access the Cloudron API.
+
+
+
+ | Name |
+ Actions |
+
+
+
+
+ |
+ {{ token.name || '-' }}
+ |
+
+
+ |
+
+
+
+
+
+
diff --git a/src/views/profile.js b/src/views/profile.js
index a90d7d09e..8895988aa 100644
--- a/src/views/profile.js
+++ b/src/views/profile.js
@@ -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,