Ghost/ghost/admin/app/components/settings/members/archive-tier.hbs
Rishabh Garg baf6ec07a8 Wired UI for archiving tiers (#2231)
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>
2022-01-31 23:56:12 +05:30

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}}