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

Show empty tag if the page has no subpages #1199

Merged
merged 2 commits into from
Feb 19, 2022

Conversation

david-venhoff
Copy link
Member

@david-venhoff david-venhoff commented Feb 19, 2022

Short description

This pr hides the empty for a page if the page has no subpages.
Generally, this tag should be hidden if the page has no publicly visible subpages, however this is not implemented as part of this pr.
This work should be done together with #1158.

Additionally, this pr fixes a crash due to an invalid url when moving a page.

Partially solves: #1175

Proposed changes

  • Check if the page is a leaf before adding the empty tag

@david-venhoff david-venhoff requested a review from a team as a code owner February 19, 2022 12:36
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks a lot! 👍
Could you add a small note to the changelog for the empty page tag?
The bug with drag & drop doesn't need an entry in the changelog, it was introduced in the current unreleased version, so it is not a real change in comparison to the last version.

@david-venhoff
Copy link
Member Author

david-venhoff commented Feb 19, 2022

Added the note 👍
Also, should this pr close #1175?

Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

🎉

Also, should this pr close #1175?

No, I think it's good to leave it open as reference and add a note that it's blocked by the other issue.

@david-venhoff david-venhoff merged commit 7a7dfd4 into develop Feb 19, 2022
@david-venhoff david-venhoff deleted the feature/page_tag_improvement branch February 19, 2022 14:34
@svenseeberg svenseeberg changed the title Don't show empty tag if the page has no subpages Show empty tag if the page has no subpages Feb 23, 2022
@svenseeberg
Copy link
Member

I think the title of this PR is misleading 😅 We're not showing the empty tag if a page has children OR has no children and is empty.

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.

None yet

3 participants