Also avoid some UI flickering in subscription info section
This commit is contained in:
@@ -340,12 +340,13 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
|
||||
$scope.subscriptionBusy = true;
|
||||
|
||||
Client.getSubscription(function (error, result) {
|
||||
$scope.subscriptionBusy = false;
|
||||
|
||||
if (error && error.statusCode === 412) return; // not yet registered
|
||||
if (error && error.statusCode === 412) return $scope.subscriptionBusy = false; // not yet registered
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.subscription = result;
|
||||
|
||||
// avoid UI flicker
|
||||
$timeout(function () {$scope.subscriptionBusy = false; }, 1);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user