mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 22:48:02 -03:30
Cleanup a few jshint errors
This commit is contained in:
parent
013792f0f8
commit
630f428d77
@ -164,12 +164,12 @@ angular
|
||||
.run(['$q', '$cookies', '$rootScope', '$log', '$stateParams',
|
||||
'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'Timer',
|
||||
'LoadConfig', 'Store', 'pendoService', 'Rest',
|
||||
'$state', 'GetBasePath', 'ConfigService',
|
||||
'$state', 'GetBasePath', 'ConfigService', 'ProcessErrors',
|
||||
'SocketService', 'AppStrings', '$transitions', 'i18n',
|
||||
function($q, $cookies, $rootScope, $log, $stateParams,
|
||||
CheckLicense, $location, Authorization, LoadBasePaths, Timer,
|
||||
LoadConfig, Store, pendoService, Rest,
|
||||
$state, GetBasePath, ConfigService,
|
||||
$state, GetBasePath, ConfigService, ProcessErrors,
|
||||
SocketService, AppStrings, $transitions, i18n) {
|
||||
|
||||
$rootScope.$state = $state;
|
||||
@ -394,7 +394,7 @@ angular
|
||||
$rootScope.pendingApprovalCount = data.count;
|
||||
})
|
||||
.catch(({data, status}) => {
|
||||
ProcessErrors($scope, data, status, null, {
|
||||
ProcessErrors({}, data, status, null, {
|
||||
hdr: i18n._('Error!'),
|
||||
msg: i18n._('Failed to get workflow jobs pending approval. GET returned status: ') + status
|
||||
});
|
||||
|
||||
@ -39,11 +39,11 @@
|
||||
* This is usage information.
|
||||
*/
|
||||
|
||||
export default ['$log', '$cookies', '$rootScope',
|
||||
export default ['$log', '$cookies', '$rootScope', 'ProcessErrors',
|
||||
'$location', 'Authorization', 'Alert', 'Wait', 'Timer',
|
||||
'Empty', '$scope', 'pendoService', 'ConfigService',
|
||||
'CheckLicense', 'SocketService', 'Rest', 'GetBasePath', 'i18n',
|
||||
function ($log, $cookies, $rootScope,
|
||||
function ($log, $cookies, $rootScope, ProcessErrors,
|
||||
$location, Authorization, Alert, Wait, Timer,
|
||||
Empty, scope, pendoService, ConfigService,
|
||||
CheckLicense, SocketService, Rest, GetBasePath, i18n) {
|
||||
@ -146,7 +146,7 @@ export default ['$log', '$cookies', '$rootScope',
|
||||
$rootScope.pendingApprovalCount = data.count;
|
||||
})
|
||||
.catch(({data, status}) => {
|
||||
ProcessErrors($scope, data, status, null, {
|
||||
ProcessErrors({}, data, status, null, {
|
||||
hdr: i18n._('Error!'),
|
||||
msg: i18n._('Failed to get workflow jobs pending approval. GET returned status: ') + status
|
||||
});
|
||||
|
||||
@ -221,7 +221,7 @@ export default ['$scope', 'TemplatesService',
|
||||
});
|
||||
}));
|
||||
} else {
|
||||
Rest.setUrl(newNodeData.related.create_approval_template);
|
||||
Rest.setUrl(node.originalNodeObject.related.create_approval_template);
|
||||
approvalTemplatePromises.push(Rest.post({
|
||||
name: node.unifiedJobTemplate.name,
|
||||
description: node.unifiedJobTemplate.description,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user