appstore: remove unused getCloudronDetails

This commit is contained in:
Girish Ramakrishnan
2019-05-02 15:28:07 -07:00
parent 01f59d39e0
commit 868af95ff2
2 changed files with 15 additions and 30 deletions

View File

@@ -497,30 +497,26 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
var appstoreConfig = result;
AppStore.getCloudronDetails(appstoreConfig, function (error) {
if (error) return callback(error);
AppStore.getProfile(appstoreConfig.token, function (error, result) {
if (error) return console.error(error);
AppStore.getProfile(appstoreConfig.token, function (error, result) {
if (error) return console.error(error);
// assign late to avoid UI flicketing on update
appstoreConfig.profile = result;
$scope.appstoreConfig = appstoreConfig;
// assign late to avoid UI flicketing on update
appstoreConfig.profile = result;
$scope.appstoreConfig = appstoreConfig;
$scope.validAppstoreAccount = true;
$scope.validAppstoreAccount = true;
// clear busy state when a login/signup was performed
$scope.appstoreLogin.busy = false;
// clear busy state when a login/signup was performed
$scope.appstoreLogin.busy = false;
// also update the root controller status
if ($scope.$parent) {
$scope.$parent.fetchAppstoreProfileAndSubscription(function (error) {
if (error) console.error(error);
});
}
// also update the root controller status
if ($scope.$parent) {
$scope.$parent.fetchAppstoreProfileAndSubscription(function (error) {
if (error) console.error(error);
});
}
callback();
});
callback();
});
});
}