-
Notifications
You must be signed in to change notification settings - Fork 2.8k
filtering subdirectory names. #964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks good to me +1 |
| return notebook; | ||
| } | ||
|
|
||
| if(notebook.children) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: extra space if (?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I see. thank you for your comment @felixcheung
| <li><a href="" data-toggle="modal" data-target="#noteNameModal"><i class="fa fa-plus"></i> Create new note</a></li> | ||
| <li class="divider"></li> | ||
| <div id="notebook-list" class="scrollbar-container"> | ||
| <li class="filter-names" ng-include="'components/filterNoteNames/filter-note-names.html'"></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make keep that line, and modify filter-note-names.html to have ng-model="$parent.query"
|
@astroshim Tested, works well, except for those 2 comments LGTM. The code handling those notebook lists and their filtering became quite messy and error prone. |
|
@corneadoug Thank you for your review. |
|
@corneadoug I refactored the codes that you pointed out. please review. |
|
Tested, Merging if no more discussions |
What is this PR for?
It needs to filtering subdirectory names in navbar.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-886
How should this be tested?
try filter the note name on navbar.
Screenshots (if appropriate)
Questions: