Add Access tab to configure UI

This commit is contained in:
Girish Ramakrishnan
2019-05-31 14:14:34 -07:00
parent dca43f3e57
commit 788e7c40e9
2 changed files with 44 additions and 41 deletions

View File

@@ -51,7 +51,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
label: '',
icon: { file: null, data: null, url: null },
action: 'general',
action: 'location',
isAccessRestrictionValid: function () {
var tmp = $scope.appConfigure.accessRestriction;
@@ -218,7 +218,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
if (error) {
if (error.statusCode === 409 && (error.message.indexOf('Port') !== -1)) {
$scope.appConfigure.error.port = error.message;
tab = 'general';
tab = 'location';
} else if (error.statusCode === 400 && error.message.indexOf('mailbox') !== -1 ) {
$scope.appConfigure.error.mailboxName = error.message;
$scope.appConfigureForm.mailboxName.$setPristine();
@@ -226,7 +226,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
} else if (error.statusCode === 409 && error.message.indexOf('subdomain') !== -1) {
$scope.appConfigure.error.location = error.message;
$scope.appConfigureForm.location.$setPristine();
tab = 'general';
tab = 'location';
$('#appConfigureLocationInput').focus();
} else if (error.statusCode === 400 && error.message.indexOf('cert') !== -1 ) {
$scope.appConfigure.error.cert = error.message;
@@ -242,7 +242,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$('#appConfigureDataDirInput').focus();
} else {
$scope.appConfigure.error.other = error.message;
tab = 'general';
tab = 'location';
}
$scope.appConfigure.action = tab;