Skip to content

Commit

Permalink
[Issue comixed#223] Add filtering the to library navigation tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Apr 1, 2020
1 parent f49b154 commit 13491d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
@@ -1,4 +1,6 @@
<p-scrollPanel>
<h3>{{'library-navigation-tree.title'|translate}}</h3>
<p-tree [value]='nodes'></p-tree>
<p-tree #navigationTree
[value]='nodes'
filter='true'></p-tree>
</p-scrollPanel>
Expand Up @@ -58,6 +58,7 @@ export class LibraryNavigationTreeComponent implements OnInit, OnDestroy {
private storiesSubscription: Subscription;

nodes: TreeNode[];
treeFilter = '';

constructor(
private logger: LoggerService,
Expand Down Expand Up @@ -182,6 +183,7 @@ export class LibraryNavigationTreeComponent implements OnInit, OnDestroy {
);
return {
label: title,
key: entry.name || 'unnammed',
data: {
title: title,
comics: entry.comics
Expand Down
2 changes: 1 addition & 1 deletion comixed-frontend/src/assets/i18n/library-en.json
Expand Up @@ -456,7 +456,7 @@
"library-navigation-tree": {
"title": "Library Contents",
"label": {
"unnamed-entry": "Unnamed ({count})",
"unnamed-entry": "Unnamed",
"all-comics": "All Comics ({count})",
"publishers": "Publishers ({count})",
"series": "Series ({count})",
Expand Down

0 comments on commit 13491d1

Please sign in to comment.