Always show warning if an app requires email to be enabled for the selected domain

We can be smarter in the future and show this based on currently
selected domain from the dropdown
This commit is contained in:
Johannes Zellner
2018-01-23 16:51:51 +01:00
parent f94380b2dd
commit bc164281db
4 changed files with 4 additions and 24 deletions

View File

@@ -18,7 +18,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$scope.searchString = '';
$scope.validAppstoreAccount = false;
$scope.appstoreConfig = null;
$scope.mailConfig = {};
$scope.showView = function (view) {
// wait for dialog to be fully closed to avoid modal behavior breakage when moving to a different view already
@@ -527,14 +526,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
});
}
function getMailConfig() {
Client.getMailConfig(function (error, mailConfig) {
if (error) return console.error(error);
$scope.mailConfig = mailConfig;
});
}
function init() {
$scope.ready = false;
@@ -548,7 +539,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
fetchUsers();
fetchGroups();
getMailConfig();
// domains is required since we populate the dropdown with domains[0]
Client.getDomains(function (error, result) {