-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed visibility toolbar active state
closes https://linear.app/tryghost/issue/PLG-108 Toolbar button was still showing active state after turning off "email only" if the segment had been changed whilst the email-only toggle was enabled. - added `getIsContentVisibilityActive()` method to all of our decorator nodes - returns `false` if a node has no `visibility` property defined - returns `true` only when visibility is disabled for web or email - updated `HtmlNodeComponent` to use the new property rather than a JSON stringified comparison of current/default visibility value
- Loading branch information
1 parent
7990a6e
commit 0a5671d
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters