From c6d2bab32fc457a81532ecd5b712d5529f4d4db1 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Tue, 15 Jan 2019 11:23:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1Removed=20Public=20API=20checkbox?= =?UTF-8?q?=20by=20default=20(#1096)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/templates/settings/labs.hbs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/templates/settings/labs.hbs b/app/templates/settings/labs.hbs index 63f1c8c54a..4d524dc64b 100644 --- a/app/templates/settings/labs.hbs +++ b/app/templates/settings/labs.hbs @@ -82,15 +82,17 @@
Beta features
-
-
-
Public API
-
For full instructions, read the developer guide
-
-
-
{{gh-feature-flag "publicAPI"}}
+ {{#if (not-eq feature.labs.publicAPI undefined)}} +
+
+
Public API (deprecated)
+
⚠️ Please use the Content API instead, more info in the docs
+
+
+
{{gh-feature-flag "publicAPI"}}
+
-
+ {{/if}}
Night shift