Fix UX items related to Notifications

This commit is contained in:
Marliana Lara
2017-07-27 15:31:39 -04:00
parent 36f49467c6
commit c0f01e671b
6 changed files with 51 additions and 3 deletions

View File

@@ -205,10 +205,22 @@ export default ['Rest', 'Wait',
$scope.emailOptionsChange = function () {
if ($scope.email_options === 'use_ssl') {
if ($scope.use_ssl) {
$scope.email_options = null;
$scope.use_ssl = false;
return;
}
$scope.use_ssl = true;
$scope.use_tls = false;
}
else if ($scope.email_options === 'use_tls') {
if ($scope.use_tls) {
$scope.email_options = null;
$scope.use_tls = false;
return;
}
$scope.use_ssl = false;
$scope.use_tls = true;
}
@@ -263,7 +275,7 @@ export default ['Rest', 'Wait',
Rest.setUrl(url + id + '/');
Rest.put(params)
.success(function() {
$state.go($state.current, null, { reload: true });
$state.go('notifications', {}, { reload: true });
Wait('stop');
})
.error(function(data, status) {