mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
Changed signup button text for single-tier-only case
This commit is contained in:
parent
f1c5647997
commit
e320af30ae
@ -602,6 +602,7 @@ function FreeProductCard({products, handleChooseSignup}) {
|
|||||||
</div>
|
</div>
|
||||||
{(!hasOnlyFree ?
|
{(!hasOnlyFree ?
|
||||||
<div className='gh-portal-btn-product'>
|
<div className='gh-portal-btn-product'>
|
||||||
|
{}
|
||||||
<button
|
<button
|
||||||
className='gh-portal-btn'
|
className='gh-portal-btn'
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
@ -623,6 +624,8 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
|
|||||||
const {action} = useContext(AppContext);
|
const {action} = useContext(AppContext);
|
||||||
|
|
||||||
const cardClass = selectedProduct === product.id ? 'gh-portal-product-card checked' : 'gh-portal-product-card';
|
const cardClass = selectedProduct === product.id ? 'gh-portal-product-card checked' : 'gh-portal-product-card';
|
||||||
|
const noOfProducts = products.length;
|
||||||
|
|
||||||
let disabled = (['signup:running', 'checkoutPlan:running'].includes(action)) ? true : false;
|
let disabled = (['signup:running', 'checkoutPlan:running'].includes(action)) ? true : false;
|
||||||
|
|
||||||
if (isCookiesDisabled()) {
|
if (isCookiesDisabled()) {
|
||||||
@ -659,7 +662,7 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
|
|||||||
const selectedPrice = getSelectedPrice({products, selectedInterval, selectedProduct: product.id});
|
const selectedPrice = getSelectedPrice({products, selectedInterval, selectedProduct: product.id});
|
||||||
handleChooseSignup(e, selectedPrice.id);
|
handleChooseSignup(e, selectedPrice.id);
|
||||||
}}>
|
}}>
|
||||||
{((selectedProduct === product.id && disabled) ? <LoaderIcon className='gh-portal-loadingicon' /> : 'Choose')}
|
{((selectedProduct === product.id && disabled) ? <LoaderIcon className='gh-portal-loadingicon' /> : (noOfProducts > 1 ? 'Choose' : 'Continue'))}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user