Fetch subscription directly after the cloudron was registered to update the ui

This commit is contained in:
Johannes Zellner
2018-04-05 21:49:15 +02:00
parent 20e9877fe9
commit e236264848
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
callback(); callback();
}); });
}); });
} };
Client.getStatus(function (error, status) { Client.getStatus(function (error, status) {
if (error) return $scope.error(error); if (error) return $scope.error(error);
+4 -1
View File
@@ -273,7 +273,10 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return; return;
} }
fetchAppstoreConfig(); fetchAppstoreConfig(function (error) {
if (error) return console.error('Unable to fetch appstore config.', error);
$scope.$parent.fetchAppstoreProfileAndSubscription(function () {});
});
}); });
}); });
} }