mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
fix jshint errors
This commit is contained in:
parent
bdf4defdbe
commit
73485b220e
@ -94,7 +94,7 @@ export default function BuildAnchor($log, $filter) {
|
||||
url += `applications/${obj.id}`;
|
||||
break;
|
||||
case 'workflow_approval':
|
||||
url += `workflows/${activity.summary_fields.workflow_job[0].id}`
|
||||
url += `workflows/${activity.summary_fields.workflow_job[0].id}`;
|
||||
name = activity.summary_fields.workflow_job[0].name;
|
||||
break;
|
||||
default:
|
||||
|
||||
@ -124,9 +124,9 @@ export default function BuildDescription(BuildAnchor, $log, i18n) {
|
||||
break;
|
||||
// expected outcome: "operation <object1>"
|
||||
case 'update':
|
||||
if (activity.object1 === 'workflow_approval'
|
||||
&& _.has(activity, 'changes.status')
|
||||
&& activity.changes.status.length === 2
|
||||
if (activity.object1 === 'workflow_approval' &&
|
||||
_.has(activity, 'changes.status') &&
|
||||
activity.changes.status.length === 2
|
||||
) {
|
||||
let operationText = '';
|
||||
if (activity.changes.status[1] === 'successful') {
|
||||
|
||||
@ -115,7 +115,7 @@ export default ['$scope','Wait', '$timeout', 'i18n',
|
||||
$scope.graphData.jobStatus = value.data;
|
||||
})
|
||||
.catch(function({data, status}) {
|
||||
processErrors(null, data, status, null, { hdr: i18n._('Error!'), msg: i18n._(`Failed to get dashboard graph data: ${response.status}`)});
|
||||
ProcessErrors(null, data, status, null, { hdr: i18n._('Error!'), msg: i18n._(`Failed to get dashboard graph data: ${status}`)});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -97,9 +97,9 @@ export default
|
||||
|
||||
var data = JSON.parse(e.data), str = "";
|
||||
|
||||
if (data.group_name === 'jobs'
|
||||
&& 'type' in data
|
||||
&& data.type === 'workflow_approval'
|
||||
if (data.group_name === 'jobs' &&
|
||||
'type' in data &&
|
||||
data.type === 'workflow_approval'
|
||||
) {
|
||||
$rootScope.$broadcast('ws-approval');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user