diff options
author | Florrie <towerofnix@gmail.com> | 2018-12-23 00:53:28 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-12-23 00:53:28 -0400 |
commit | ecb1890db2c0f85cc033753e31ab8804de55133c (patch) | |
tree | 3846253ec980283cf352a6f4d0f3f3c8362ee845 /ui.js | |
parent | 9162068126fffe4fa0d13d174cc3c14373fa2588 (diff) | |
parent | b0f256ea0352fd86f40c6e4bd18bee47c36c320b (diff) |
Merge branch 'master' into web-mtui
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js index fc38401..69fc7f1 100644 --- a/ui.js +++ b/ui.js @@ -250,7 +250,7 @@ class AppElement extends FocusElement { items: [ // A label that just shows some brief information about the item. isGroup && {label: - `("${item.name}" -` + + `(${item.name ? `"${item.name}"` : 'Unnamed'} -` + ` ${item.items.length} item${item.items.length === 1 ? '' : 's'}` + `, ${countTotalItems(item)} total` + ')'}, @@ -965,7 +965,7 @@ class GrouplikeListingElement extends Form { // within any groups (so you can't bworse a parent and access its menu // from there). if (!this.grouplike.isTheQueue) { - const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name}`) + const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name || '(Unnamed group)'}`) ownElement.item = this.grouplike ownElement.recordStore = this.recordStore ownElement.isGroup = true |