mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Removed 'Add price' button when not connected to Stripe
This commit is contained in:
parent
b6cfe7ed7c
commit
a94f27bbc0
2 changed files with 11 additions and 9 deletions
|
@ -222,9 +222,7 @@
|
|||
}
|
||||
|
||||
.gh-price-list-noprices {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 48px 0;
|
||||
color: var(--midgrey);
|
||||
}
|
||||
|
|
|
@ -74,12 +74,16 @@
|
|||
<tr class="gh-list-row {{if price.active "" "gh-price-list-archived"}}">
|
||||
<td colspan="4" class="gh-list-data">
|
||||
<div class="gh-price-list-noprices">
|
||||
<div class="mb2">There are no prices for this product.</div>
|
||||
{{#unless this.product.isNew}}
|
||||
<button type="button" class="gh-btn gh-btn-green" {{action "openNewPrice"}}>
|
||||
<span>Add price</span>
|
||||
</button>
|
||||
{{/unless}}
|
||||
<div class="mb2">There are no prices for this product</div>
|
||||
{{#if this.settings.stripeConnectAccountId}}
|
||||
{{#unless this.product.isNew}}
|
||||
<button type="button" class="gh-btn gh-btn-green" {{action "openNewPrice"}}>
|
||||
<span>Add price</span>
|
||||
</button>
|
||||
{{/unless}}
|
||||
{{else}}
|
||||
You need to <LinkTo class="gh-setting-group" @route="settings.members-payments" data-test-nav="members-payments">connect to Stripe</LinkTo> to add prices
|
||||
{{/if}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue