0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated copy for Tiers early-access flow

This commit is contained in:
Peter Zimon 2021-09-08 10:40:52 +02:00
parent 5bdef5e44e
commit cdedf7b0a8
4 changed files with 30 additions and 13 deletions

View file

@ -0,0 +1,13 @@
<header class="modal-header">
<h1>Tiers is a one-way street!</h1>
</header>
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
<div class="modal-body">
<p>Tiers for paid memberships is currently in an early access beta. Once enabled, it cannot be switched off. <a href="https://ghost.org/help/topic/members" target="_blank">Learn more here</a></p>
</div>
<div class="modal-footer">
<button {{action "closeModal"}} class="gh-btn"><span>Cancel</span></button>
<button {{action "closeModal"}} class="gh-btn gh-btn-primary"><span>Enable Tiers</span></button>
</div>

View file

@ -0,0 +1,3 @@
import ModalComponent from 'ghost-admin/components/modal-base';
export default ModalComponent.extend({});

View file

@ -47,6 +47,7 @@ export default Controller.extend({
importSuccessful: false, importSuccessful: false,
showDeleteAllModal: false, showDeleteAllModal: false,
showEarlyAccessModal: false, showEarlyAccessModal: false,
showEnableTiersModal: false,
submitting: false, submitting: false,
uploadButtonText: 'Import', uploadButtonText: 'Import',
@ -161,6 +162,10 @@ export default Controller.extend({
this.toggleProperty('showEarlyAccessModal'); this.toggleProperty('showEarlyAccessModal');
}, },
toggleEnableTiersModal() {
this.toggleProperty('showEnableTiersModal');
},
async toggleIsOAuthEnabled() { async toggleIsOAuthEnabled() {
if (this.isOAuthEnabled) { if (this.isOAuthEnabled) {
this.settings.set('oauthClientId', ''); this.settings.set('oauthClientId', '');

View file

@ -79,32 +79,28 @@
</div> </div>
</div> </div>
{{#if (enable-developer-experiments)}}
<div class="gh-main-section"> <div class="gh-main-section">
<h4 class="gh-main-section-header small bn">Early-access features</h4> <h4 class="gh-main-section-header small bn">Beta features</h4>
<div class="gh-expandable"> <div class="gh-expandable">
{{#if (enable-developer-experiments)}}
<div class="gh-expandable-block"> <div class="gh-expandable-block">
<div class="gh-expandable-header"> <div class="gh-expandable-header">
<div> <div>
<h4 class="gh-expandable-title">Tiers</h4> <h4 class="gh-expandable-title">Tiers</h4>
<p class="gh-expandable-description"> <p class="gh-expandable-description">
Allow members to sign-up for different tiers. <a href="https://ghost.org/help/topic/members" target="_blank">Learn more</a> Add additional tiers to your paid memberships (e.g. Bronze, Silver, Gold). <a href="https://ghost.org/help/topic/members" target="_blank">Learn more here</a>
</p> </p>
</div> </div>
{{#if (feature "multipleProducts")}} {{#if (feature "multipleProducts")}}
<span class="gh-badge">Enabled</span> <span class="gh-badge">Enabled</span>
{{else}} {{else}}
<button type="button" class="gh-btn" {{action "toggleEarlyAccessModal"}}><span>Enable</span></button> <button type="button" class="gh-btn" {{action "toggleEnableTiersModal"}}><span>Enable</span></button>
{{/if}} {{/if}}
</div> </div>
</div> </div>
</div> {{/if}}
</div>
{{/if}}
<div class="gh-main-section">
<h4 class="gh-main-section-header small bn">Beta features</h4>
<div class="gh-expandable">
<div class="gh-expandable-block"> <div class="gh-expandable-block">
<GhUploader <GhUploader
@extensions={{this.redirectsFileExtensions}} @extensions={{this.redirectsFileExtensions}}
@ -331,8 +327,8 @@
@modifier="action wide" /> @modifier="action wide" />
{{/if}} {{/if}}
{{#if this.showEarlyAccessModal}} {{#if this.showEnableTiersModal}}
<GhFullscreenModal @modal="early-access" <GhFullscreenModal @modal="enable-tiers"
@close={{action "toggleEarlyAccessModal"}} @close={{action "toggleEnableTiersModal"}}
@modifier="action wide" /> @modifier="action wide" />
{{/if}} {{/if}}