mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
enable expand/collapse all tasks button in job result page
This commit is contained in:
parent
37d61904bf
commit
daf3215241
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user