From 0add22b87b83b4d06161d7506fdb34290536625e Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Fri, 22 May 2020 16:01:35 +0200 Subject: [PATCH] #1316 Use a better icon for the switch org modal --- frontend/app/scripts/controllers/RootCtrl.js | 14 +++++++++----- .../app/views/components/org/orgSwitch.modal.html | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/app/scripts/controllers/RootCtrl.js b/frontend/app/scripts/controllers/RootCtrl.js index 891c2ead60..b64db354c6 100644 --- a/frontend/app/scripts/controllers/RootCtrl.js +++ b/frontend/app/scripts/controllers/RootCtrl.js @@ -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() { @@ -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() { diff --git a/frontend/app/views/components/org/orgSwitch.modal.html b/frontend/app/views/components/org/orgSwitch.modal.html index 1fb844b48a..dcdec4f1ec 100644 --- a/frontend/app/views/components/org/orgSwitch.modal.html +++ b/frontend/app/views/components/org/orgSwitch.modal.html @@ -1,6 +1,6 @@