mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
AC-363 token expiration now handled exclusively on server.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
angular.module('RefreshHelper', ['RestServices', 'Utilities'])
|
||||
.factory('Refresh', ['Alert', 'Rest', function(Alert, Rest) {
|
||||
.factory('Refresh', ['ProcessErrors', 'Rest', function(ProcessErrors, Rest) {
|
||||
return function(params) {
|
||||
|
||||
var scope = params.scope;
|
||||
@@ -37,7 +37,8 @@ angular.module('RefreshHelper', ['RestServices', 'Utilities'])
|
||||
})
|
||||
.error ( function(data, status, headers, config) {
|
||||
scope[iterator + 'SearchSpin'] = false;
|
||||
Alert('Error!', 'Failed to retrieve ' + set + '. GET returned status: ' + status);
|
||||
ProcessErrors(scope, data, status, null,
|
||||
{ hdr: 'Error!', msg: 'Failed to retrieve ' + set + '. GET returned status: ' + status });
|
||||
});
|
||||
}
|
||||
}]);
|
||||
Reference in New Issue
Block a user