separate the provision status and cloudron status

This commit is contained in:
Girish Ramakrishnan
2023-08-10 18:45:27 +05:30
parent 98719aa942
commit 1cdd528b45
13 changed files with 93 additions and 75 deletions
+2 -3
View File
@@ -291,7 +291,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
function waitForRestore() {
$scope.busy = true;
Client.getStatus(function (error, status) {
Client.getProvisionStatus(function (error, status) {
if (!error && !status.restore.active) { // restore finished
if (status.restore.errorMessage) {
$scope.busy = false;
@@ -353,7 +353,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
};
function init() {
Client.getStatus(function (error, status) {
Client.getProvisionStatus(function (error, status) {
if (error) return Client.initError(error, init);
if (status.restore.active) return waitForRestore();
@@ -380,7 +380,6 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
$scope.blockDevices = result;
$scope.status = status;
$scope.instanceId = search.instanceId;
$scope.setupToken = search.setupToken;
$scope.initialized = true;