Skip to content

Commit

Permalink
Added feature flag for page improvements (#17176)
Browse files Browse the repository at this point in the history
No ref
  • Loading branch information
sanne-san committed Jul 3, 2023
1 parent 3811999 commit 4a6a61b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions ghost/admin/app/services/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class FeatureService extends Service {
@feature('signupForm') signupForm;
@feature('collections') collections;
@feature('adminXSettings') adminXSettings;
@feature('pageImprovements') pageImprovements;
@feature('mailEvents') mailEvents;

_user = null;
Expand Down
14 changes: 14 additions & 0 deletions ghost/admin/app/templates/settings/labs.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,20 @@
</div>
</div>

<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Page improvements</h4>
<p class="gh-expandable-description">
Enables toggling off page title and feature image
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="pageImprovements" />
</div>
</div>
</div>

<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
Expand Down
1 change: 1 addition & 0 deletions ghost/core/core/shared/labs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const ALPHA_FEATURES = [
'emailCustomization',
'collections',
'adminXSettings',
'pageImprovements',
'mailEvents'
];

Expand Down

0 comments on commit 4a6a61b

Please sign in to comment.