mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
baf6ec07a8
refs https://github.com/TryGhost/Team/issues/1252 - allows site owners to (un)archive existing tiers via Admin UI - adds option to switch between archived or active tiers view Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com>
17 lines
380 B
Handlebars
17 lines
380 B
Handlebars
{{#if this.product.active}}
|
|
{{#if (not this.product.isNew)}}
|
|
<button
|
|
type="button"
|
|
{{on "click" this.handleArchiveTier}}
|
|
>
|
|
<span>Archive</span>
|
|
</button>
|
|
{{/if}}
|
|
{{else}}
|
|
<button
|
|
type="button"
|
|
{{on "click" this.handleUnarchiveTier}}
|
|
>
|
|
<span>Reactivate</span>
|
|
</button>
|
|
{{/if}} |