mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-30 02:22:47 +00:00
fix(web(js)): show toast when fetching a folder ACLs fails
This commit is contained in:
@@ -65,6 +65,9 @@
|
||||
});
|
||||
deferred.resolve(_this.users);
|
||||
return _this.users;
|
||||
}, function(response) {
|
||||
deferred.reject(l(response.statusText));
|
||||
throw Error('No access to object');
|
||||
});
|
||||
}
|
||||
return deferred.promise;
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
$window.recovered = true;
|
||||
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
|
||||
}
|
||||
else if (rejection.data && !rejection.data.quiet) {
|
||||
else if (!rejection.data || !rejection.data.quiet) {
|
||||
// Broadcast the response error
|
||||
$rootScope.$broadcast('http:Error', rejection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user