Added snippetReplacements alpha labs feature

refs https://github.com/TryGhost/Team/issues/973

- adds feature flag and labs screen toggle for alpha feature that allows for replacing a snippet's contents without manually deleting and recreating
This commit is contained in:
Kevin Ansfield 2021-08-16 10:44:13 +01:00
parent f110d3df7e
commit 53c83ffea4
2 changed files with 14 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export default Service.extend({
checkEmailList: feature('checkEmailList', {developer: true}),
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
dashboardTwo: feature('dashboardTwo', {developer: true}),
snippetReplacements: feature('snippetReplacements', {developer: true}),
_user: null,

View File

@ -348,6 +348,19 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Snippet replacements</h4>
<p class="gh-expandable-description">
When creating a snippet, allow for replacing an existing snippet.
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="snippetReplacements" />
</div>
</div>
</div>
</div>
</div>
{{/if}}