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:
commit
9ec53b6e03
@ -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