Not sure what to do yet with alias ui in users settings, so disable to make the ui itself work

This commit is contained in:
Johannes Zellner
2018-01-23 17:09:47 +01:00
parent bc164281db
commit 7b7e94d3d6

View File

@@ -11,7 +11,11 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.groupsById = { };
$scope.config = Client.getConfig();
$scope.userInfo = Client.getUserInfo();
$scope.mailConfig = {};
// FIXME this needs a whole lot of rework as it is used for alias ui, which now needs to be multidomain aware
$scope.mailConfig = {
enabled: false
};
$scope.userremove = {
busy: false,
@@ -409,18 +413,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
});
}
function getMailConfig() {
Client.getMailConfig(function (error, mailConfig) {
if (error) return console.error(error);
$scope.mailConfig = mailConfig;
});
}
Client.onReady(function () {
getMailConfig();
refresh();
});
Client.onReady(refresh);
// setup all the dialog focus handling
['userAddModal', 'userRemoveModal', 'userEditModal', 'groupAddModal', 'groupRemoveModal'].forEach(function (id) {