isPaying is not set properly for non-caas
This commit is contained in:
@@ -114,8 +114,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
|
||||
isCustomDomain: false,
|
||||
region: null,
|
||||
size: null,
|
||||
memory: 0,
|
||||
isPaying: false
|
||||
memory: 0
|
||||
};
|
||||
this._installedApps = [];
|
||||
this._clientId = '<%= oauth.clientId %>';
|
||||
|
||||
@@ -145,6 +145,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
}
|
||||
|
||||
function getSubscription() {
|
||||
if ($scope.config.provider === 'caas') {
|
||||
$scope.isPaying = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Client.getAppstoreConfig(function (error, result) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user