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

Refined archive/unarchive prices

This commit is contained in:
Peter Zimon 2021-05-07 17:45:59 +02:00
parent ad41a44620
commit 8eee71f2d6
2 changed files with 14 additions and 7 deletions

View file

@ -209,12 +209,12 @@
}
.gh-price-list-name span.archived {
background: var(--midgrey);
color: #fff;
background: var(--lightgrey-l2);
color: var(--midgrey);
font-size: 1.2rem;
}
.gh-price-list-archived .gh-price-list-name,
.gh-price-list-archived .gh-price-list-name .name,
.gh-price-list-archived .gh-price-list-description,
.gh-price-list-archived .gh-price-list-price span,
.gh-price-list-archived .gh-price-list-subscriptions span {
@ -233,6 +233,10 @@
left: auto;
}
.gh-btn-archive-toggle {
width: 80px;
}
.product-actions-menu.fade-out {
animation-duration: 0.01s;
pointer-events: none;

View file

@ -92,7 +92,10 @@
<li class="gh-list-row {{if price.active "" "gh-price-list-archived"}}">
<div class="gh-list-data gh-price-list-title">
<h3 class="gh-price-list-name">
{{price.nickname}}
<span class="name">{{price.nickname}}</span>
{{#unless price.active}}
<span class="gh-badge archived">Archived</span>
{{/unless}}
</h3>
<p class="ma0 pa0 f8 midgrey gh-price-list-description">
{{price.description}}
@ -109,11 +112,11 @@
<span>Edit</span>
</button>
{{#if price.active}}
<button class="gh-btn gh-btn-link archived" {{action "archivePrice" price}}>
<button class="gh-btn gh-btn-link gh-btn-archive-toggle archived" {{action "archivePrice" price}}>
<span>Archive</span>
</button>
{{else}}
<button class="gh-btn gh-btn-link" {{action "activatePrice" price}}>
<button class="gh-btn gh-btn-link gh-btn-archive-toggle" {{action "activatePrice" price}}>
<span>Activate</span>
</button>
{{/if}}