mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +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>
|
||||
{(!hasOnlyFree ?
|
||||
<div className='gh-portal-btn-product'>
|
||||
{}
|
||||
<button
|
||||
className='gh-portal-btn'
|
||||
disabled={disabled}
|
||||
@ -623,6 +624,8 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
|
||||
const {action} = useContext(AppContext);
|
||||
|
||||
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;
|
||||
|
||||
if (isCookiesDisabled()) {
|
||||
@ -659,7 +662,7 @@ function ProductCard({product, products, selectedInterval, handleChooseSignup})
|
||||
const selectedPrice = getSelectedPrice({products, selectedInterval, selectedProduct: product.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>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user