Skip to content

Commit

Permalink
šŸ’”Removed Public API checkbox by default (TryGhost#1096)
Browse files Browse the repository at this point in the history
refs #10364

When the publicAPI flag is undefined, it means it has never been set in
Ghost Admin before - so we can safely remove the option from labs.
  • Loading branch information
allouis authored Jan 15, 2019
1 parent fe1365d commit c6d2bab
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/templates/settings/labs.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,17 @@
</div>

<div class="gh-setting-header">Beta features</div>
<div class="gh-setting">
<div class="gh-setting-content">
<div class="gh-setting-title">Public API</div>
<div class="gh-setting-desc">For full instructions, read the <a href="https://help.ghost.org/hc/en-us/articles/115000301672-Public-API-Beta">developer guide</a></div>
</div>
<div class="gh-setting-action">
<div class="for-checkbox">{{gh-feature-flag "publicAPI"}}</div>
{{#if (not-eq feature.labs.publicAPI undefined)}}
<div class="gh-setting">
<div class="gh-setting-content">
<div class="gh-setting-title">Public API (deprecated)</div>
<div class="gh-setting-desc">āš ļø Please use the Content API instead, more info in <a href="https://docs.ghost.org/api/content/">the docs</a></div>
</div>
<div class="gh-setting-action">
<div class="for-checkbox">{{gh-feature-flag "publicAPI"}}</div>
</div>
</div>
</div>
{{/if}}
<div class="gh-setting">
<div class="gh-setting-content">
<div class="gh-setting-title">Night shift</div>
Expand Down

0 comments on commit c6d2bab

Please sign in to comment.