mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
fix lint errors
This commit is contained in:
parent
a5e20117e3
commit
95a37fab05
@ -38,8 +38,8 @@ function JobsIndexController (
|
|||||||
vm.clear = devClear;
|
vm.clear = devClear;
|
||||||
|
|
||||||
// Expand/collapse
|
// Expand/collapse
|
||||||
vm.toggle = toggle;
|
// vm.toggle = toggle;
|
||||||
vm.expand = expand;
|
// vm.expand = expand;
|
||||||
vm.isExpanded = true;
|
vm.isExpanded = true;
|
||||||
|
|
||||||
// Panel
|
// Panel
|
||||||
@ -160,10 +160,10 @@ function previous () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function append (events, engine) {
|
function append (events, eng) {
|
||||||
return render.append(events)
|
return render.append(events)
|
||||||
.then(count => {
|
.then(count => {
|
||||||
page.updateLineCount(count, engine);
|
page.updateLineCount(count, eng);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,48 +277,49 @@ function scrollIsAtRest (isAtRest) {
|
|||||||
vm.scroll.showBackToTop = !isAtRest;
|
vm.scroll.showBackToTop = !isAtRest;
|
||||||
}
|
}
|
||||||
|
|
||||||
function expand () {
|
// function expand () {
|
||||||
vm.toggle(parent, true);
|
// vm.toggle(parent, true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
function showHostDetails (id) {
|
// function showHostDetails (id) {
|
||||||
jobEvent.request('get', id)
|
// jobEvent.request('get', id)
|
||||||
.then(() => {
|
// .then(() => {
|
||||||
const title = jobEvent.get('host_name');
|
// const title = jobEvent.get('host_name');
|
||||||
|
|
||||||
vm.host = {
|
// vm.host = {
|
||||||
menu: true,
|
// menu: true,
|
||||||
stdout: jobEvent.get('stdout')
|
// stdout: jobEvent.get('stdout')
|
||||||
};
|
// };
|
||||||
|
|
||||||
$scope.jobs.modal.show(title);
|
// $scope.jobs.modal.show(title);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
function toggle (uuid, menu) {
|
// function toggle (uuid, menu) {
|
||||||
const lines = $(`.child-of-${uuid}`);
|
// const lines = $(`.child-of-${uuid}`);
|
||||||
let icon = $(`#${uuid} .at-Stdout-toggle > i`);
|
// let icon = $(`#${uuid} .at-Stdout-toggle > i`);
|
||||||
|
|
||||||
if (menu || record[uuid].level === 1) {
|
// if (menu || record[uuid].level === 1) {
|
||||||
vm.isExpanded = !vm.isExpanded;
|
// vm.isExpanded = !vm.isExpanded;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (record[uuid].children) {
|
// if (record[uuid].children) {
|
||||||
icon = icon.add($(`#${record[uuid].children.join(', #')}`).find('.at-Stdout-toggle > i'));
|
// icon = icon.add($(`#${record[uuid].children.join(', #')}`)
|
||||||
}
|
// .find('.at-Stdout-toggle > i'));
|
||||||
|
// }
|
||||||
|
|
||||||
if (icon.hasClass('fa-angle-down')) {
|
// if (icon.hasClass('fa-angle-down')) {
|
||||||
icon.addClass('fa-angle-right');
|
// icon.addClass('fa-angle-right');
|
||||||
icon.removeClass('fa-angle-down');
|
// icon.removeClass('fa-angle-down');
|
||||||
|
|
||||||
lines.addClass('hidden');
|
// lines.addClass('hidden');
|
||||||
} else {
|
// } else {
|
||||||
icon.addClass('fa-angle-down');
|
// icon.addClass('fa-angle-down');
|
||||||
icon.removeClass('fa-angle-right');
|
// icon.removeClass('fa-angle-right');
|
||||||
|
|
||||||
lines.removeClass('hidden');
|
// lines.removeClass('hidden');
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
JobsIndexController.$inject = [
|
JobsIndexController.$inject = [
|
||||||
'resource',
|
'resource',
|
||||||
|
@ -156,10 +156,10 @@ function JobPageService ($q) {
|
|||||||
this.isPageBookmarked = number => number >= this.page.bookmark.first &&
|
this.isPageBookmarked = number => number >= this.page.bookmark.first &&
|
||||||
number <= this.page.bookmark.last;
|
number <= this.page.bookmark.last;
|
||||||
|
|
||||||
this.updateLineCount = (lines, stream) => {
|
this.updateLineCount = (lines, engine) => {
|
||||||
let reference;
|
let reference;
|
||||||
|
|
||||||
if (stream) {
|
if (engine) {
|
||||||
reference = this.getReference();
|
reference = this.getReference();
|
||||||
} else {
|
} else {
|
||||||
reference = this.getActiveReference();
|
reference = this.getActiveReference();
|
||||||
|
@ -53,8 +53,8 @@ function QuerysetService ($q, Rest, ProcessErrors, $rootScope, Wait, DjangoSearc
|
|||||||
.map(value => {
|
.map(value => {
|
||||||
value = this.replaceDefaultFlags(value);
|
value = this.replaceDefaultFlags(value);
|
||||||
value = this.replaceEncodedTokens(value);
|
value = this.replaceEncodedTokens(value);
|
||||||
return [key, value]
|
return [key, value];
|
||||||
})
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
// encodes ui-router params from {operand__key__comparator: value} pairs to API-consumable URL
|
// encodes ui-router params from {operand__key__comparator: value} pairs to API-consumable URL
|
||||||
@ -83,7 +83,7 @@ function QuerysetService ($q, Rest, ProcessErrors, $rootScope, Wait, DjangoSearc
|
|||||||
for (let encodedIndex in encodedTerms) {
|
for (let encodedIndex in encodedTerms) {
|
||||||
const [encodedKey, encodedValue] = encodedTerms[encodedIndex];
|
const [encodedKey, encodedValue] = encodedTerms[encodedIndex];
|
||||||
obj[encodedKey] = obj[encodedKey] || [];
|
obj[encodedKey] = obj[encodedKey] || [];
|
||||||
obj[encodedKey].push(encodedValue)
|
obj[encodedKey].push(encodedValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
|
@ -6,7 +6,7 @@ function SmartSearchController (
|
|||||||
configService,
|
configService,
|
||||||
GetBasePath,
|
GetBasePath,
|
||||||
i18n,
|
i18n,
|
||||||
qs,
|
qs
|
||||||
) {
|
) {
|
||||||
const searchKey = `${$scope.iterator}_search`;
|
const searchKey = `${$scope.iterator}_search`;
|
||||||
const optionsKey = `${$scope.list.iterator}_options`;
|
const optionsKey = `${$scope.list.iterator}_options`;
|
||||||
|
Loading…
Reference in New Issue
Block a user