Repository: syncope
Updated Branches:
  refs/heads/master b30099b68 -> 9f7e0ac15


[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/9f7e0ac1
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/9f7e0ac1
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/9f7e0ac1

Branch: refs/heads/master
Commit: 9f7e0ac15813fb50f34992bc413729c8943cd6e5
Parents: b30099b
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:03:30 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/9f7e0ac1/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