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

View File

@@ -273,7 +273,10 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return;
}
fetchAppstoreConfig();
fetchAppstoreConfig(function (error) {
if (error) return console.error('Unable to fetch appstore config.', error);
$scope.$parent.fetchAppstoreProfileAndSubscription(function () {});
});
});
});
}