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