Repository: syncope
Updated Branches:
  refs/heads/2_0_X eded0eb3a -> 44a858dc9


[SYNCOPE-997] hide ui-router error messages


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/44a858dc
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/44a858dc
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/44a858dc

Branch: refs/heads/2_0_X
Commit: 44a858dc9bd9d32c07ca19217117babefdc7b4df
Parents: eded0eb
Author: Matteo Di Carlo <matteo.dica...@tirasa.net>
Authored: Fri Jan 13 17:02:15 2017 +0100
Committer: Matteo Di Carlo <matteo.dica...@tirasa.net>
Committed: Fri Jan 13 17:02:15 2017 +0100

----------------------------------------------------------------------
 .../src/main/resources/META-INF/resources/app/js/app.js       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/44a858dc/client/enduser/src/main/resources/META-INF/resources/app/js/app.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/app.js 
b/client/enduser/src/main/resources/META-INF/resources/app/js/app.js
index efdf8ed..37bcafd 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/app.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/app.js
@@ -45,8 +45,11 @@ var app = angular.module('SyncopeEnduserApp', [
   'pascalprecht.translate'
 ]);
 
-app.config(['$stateProvider', '$urlRouterProvider', '$httpProvider', 
'$translateProvider', '$translatePartialLoaderProvider',
-  function ($stateProvider, $urlRouterProvider, $httpProvider, 
$translateProvider, $translatePartialLoaderProvider) {
+app.config(['$qProvider', '$stateProvider', '$urlRouterProvider', 
'$httpProvider', '$translateProvider', '$translatePartialLoaderProvider',
+  function ($qProvider, $stateProvider, $urlRouterProvider, $httpProvider, 
$translateProvider, $translatePartialLoaderProvider) {
+    
+    //workaround for angular-ui-router issue: [SYNCOPE-997]
+    $qProvider.errorOnUnhandledRejections(false);
 
     $translatePartialLoaderProvider.addPart('static');
     $translatePartialLoaderProvider.addPart('dynamic');

Reply via email to