1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Merge pull request #2249 from Haokun-Chen/2228

enable expand/collapse all tasks button in job result page
This commit is contained in:
Haokun Chen 2018-06-20 15:05:27 -04:00 committed by GitHub
commit 9ec53b6e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,10 +142,8 @@ function toggleMenuExpand () {
if (scroll.isPaused()) return;
const recordList = Object.keys(render.record).map(key => render.record[key]);
const minLevel = Math.min(...recordList.map(({ level }) => level));
const toggled = recordList
.filter(({ level }) => level === minLevel)
.map(({ uuid }) => getToggleElements(uuid))
.filter(({ icon }) => icon.length > 0)
.map(({ icon, lines }) => setExpanded(icon, lines, !vm.isMenuExpanded));