Skip to content
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

Add option to show/hide contents of subfolders #607

Merged
merged 4 commits into from Sep 3, 2020
Merged

Add option to show/hide contents of subfolders #607

merged 4 commits into from Sep 3, 2020

Conversation

ghost
Copy link

@ghost ghost commented Aug 30, 2020

I don't know if the wording on the front end of it describes very well what the option does. I didn't want to make it too long. Criticism is very welcome.

Fixes #419

@CLAassistant
Copy link

CLAassistant commented Aug 30, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@Rokt33r Rokt33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good to me!

!note!.trashed
) {
notes.push(note)
if (preferences['general.showSubfolderContent']) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add preferences['general.showSubfolderContent'] to deps of memo hook

}
} else {
if (
(note!.folderPathname + '/') === (folder.pathname + '/') &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to append / when comparing

@@ -40,6 +40,7 @@ export interface Preferences {
'general.noteListView': GeneralNoteListViewOptions
'general.enableAnalytics': boolean
'general.enableAutoSync': boolean
'general.showSubfolderContent': boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be plural. showSubfolderContents

@ghost ghost requested a review from Rokt33r September 2, 2020 16:21
@Rokt33r
Copy link
Member

Rokt33r commented Sep 3, 2020

Thank you so much!

@Rokt33r Rokt33r merged commit 18bd744 into BoostIO:master Sep 3, 2020
@Rokt33r Rokt33r added this to the v0.10.0 milestone Sep 3, 2020
@ghost ghost deleted the show-subfolder-contents-option branch September 3, 2020 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to show notes only in a folder not in its sub folders
2 participants