Pick public info from status object
This commit is contained in:
@@ -32,9 +32,7 @@ app.controller('LoginController', ['$scope', '$http', function ($scope, $http) {
|
||||
$scope.mode = '';
|
||||
$scope.busy = false;
|
||||
$scope.error = false;
|
||||
$scope.cloudronName = 'Cloudron';
|
||||
$scope.footer = '';
|
||||
$scope.version = '';
|
||||
$scope.status = null;
|
||||
$scope.username = '';
|
||||
$scope.password = '';
|
||||
$scope.totpToken = '';
|
||||
@@ -139,9 +137,7 @@ app.controller('LoginController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
if (status !== 200) return;
|
||||
|
||||
$scope.cloudronName = data.cloudronName;
|
||||
$scope.footer = data.footer;
|
||||
$scope.version = data.version;
|
||||
$scope.status = data.status;
|
||||
}).error(function () {
|
||||
$scope.initialized = false;
|
||||
});
|
||||
|
||||
@@ -33,9 +33,7 @@ app.controller('SetupAccountController', ['$scope', '$http', function ($scope, $
|
||||
$scope.busy = false;
|
||||
$scope.error = null;
|
||||
$scope.view = 'setup';
|
||||
$scope.cloudronName = 'Cloudron';
|
||||
$scope.footer = '';
|
||||
$scope.version = '';
|
||||
$scope.status = null;
|
||||
|
||||
$scope.existingUsername = !!search.username;
|
||||
$scope.username = search.username || '';
|
||||
@@ -96,9 +94,7 @@ app.controller('SetupAccountController', ['$scope', '$http', function ($scope, $
|
||||
|
||||
if (status !== 200) return;
|
||||
|
||||
$scope.cloudronName = data.cloudronName;
|
||||
$scope.footer = data.footer;
|
||||
$scope.version = data.version;
|
||||
$scope.status = data;
|
||||
}).error(function () {
|
||||
$scope.initialized = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user