diff options
author | Florrie <towerofnix@gmail.com> | 2020-03-13 12:09:15 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-03-13 12:09:15 -0300 |
commit | ef66a8613ddc0584a1f08696261f62c19cd7db6e (patch) | |
tree | 55e22a2a9818d8d23d4c23ee40260801d39dba3a /ui.js | |
parent | 2b671919525596b8afe1bdd442a562183a054398 (diff) |
display duration in track context menu
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui.js b/ui.js index 81108aa..f9f066e 100644 --- a/ui.js +++ b/ui.js @@ -1000,12 +1000,10 @@ class AppElement extends FocusElement { items = [ // A label that just shows some brief information about the item. {label: - `(${item.name ? `"${item.name}"` : 'Unnamed'}` + - (isGroup(item) ? ( - ' -' + - ` ${numTracks} track${numTracks === 1 ? '' : 's'}` + - `, ${durationString}`) - : '') + ')', + `(${item.name ? `"${item.name}"` : 'Unnamed'} - ` + + (isGroup(item) ? ` ${numTracks} track${numTracks === 1 ? '' : 's'}, ` : '') + + durationString + + ')', keyboardIdentifier: item.name }, |