Skip to content

Commit

Permalink
#1316 Use a better icon for the switch org modal
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 22, 2020
1 parent 24d4812 commit 0add22b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions frontend/app/scripts/controllers/RootCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ angular.module('theHiveControllers').controller('RootCtrl',
if(err && !_.isString(err)) {
NotificationSrv.error('Switch organisation', err.data, err.status);
}

NotificationSrv.error('App', err.data, err.status);
})
.finally(function() {
$timeout(function() {
Expand Down Expand Up @@ -211,9 +209,15 @@ angular.module('theHiveControllers').controller('RootCtrl',
}
});

modal.result.then(function(template) {
$scope.createNewCase(template);
});
modal.result
.then(function(template) {
$scope.createNewCase(template);
})
.catch(function(err) {
if(err && !_.isString(err)) {
NotificationSrv.error('Template Selection', err.data, err.status);
}
});
};

$scope.aboutTheHive = function() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/views/components/org/orgSwitch.modal.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form ng-submit="$modal.confirm()">
<div class="modal-header bg-primary">
<h3 class="modal-title">Switch organisation</h3>
<h3 class="modal-title"><i class="fa fa-random"></i> Switch organisation</h3>
</div>
<div class="modal-body">
<p class="mb-xs">
Expand Down

0 comments on commit 0add22b

Please sign in to comment.