Skip to content

Commit

Permalink
Don't display module & loc badges for current function
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Apr 17, 2024
1 parent e5ba563 commit afcc994
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app/pages/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ const descendantTree = {
}
},
// { view: 'total-time', when: 'children', data: 'totalTime' },
'module-badge:node.value',
'loc-badge:node.value'
{
view: 'context',
when: 'node.value.id != +#.id',
content: [
'module-badge:node.value',
'loc-badge:node.value'
]
}
]
}
}
Expand Down Expand Up @@ -107,8 +113,14 @@ const ancestorsTree = {
content: 'text:"Total time – the entire duration spent on the execution of a function. This includes both the \'self time\', which is the time taken by the function itself to execute its own code, and the \'nested time\', which is the time spent on executing all the other functions that are called from within this function"'
}
},
'module-badge:node.value',
'loc-badge:node.value'
{
view: 'context',
when: 'node.value.id != +#.id',
content: [
'module-badge:node.value',
'loc-badge:node.value'
]
}
]
}
}
Expand Down

0 comments on commit afcc994

Please sign in to comment.