Cleanup a few jshint errors

This commit is contained in:
mabashian 2019-07-31 11:38:47 -04:00 committed by Ryan Petrello
parent 013792f0f8
commit 630f428d77
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
3 changed files with 7 additions and 7 deletions

View File

@ -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
});

View File

@ -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
});

View File

@ -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,