UX: fix incorrect text on cancel button

This commit is contained in:
Justin DiRose 2020-09-16 09:49:45 -05:00
parent bdcaaf9897
commit d60c5b6d54
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
2 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,11 @@
{{#if subscription.loading}}
{{loading-spinner size="small"}}
{{else}}
{{d-button disabled=subscription.canceled_at label="discourse_subscriptions.user.subscriptions.cancelled" action=(route-action "cancelSubscription" subscription) icon="times"}}
{{#if subscription.canceled_at}}
{{d-button disabled=subscription.canceled_at label="discourse_subscriptions.user.subscriptions.cancelled"}}
{{else}}
{{d-button disabled=subscription.canceled_at label="discourse_subscriptions.user.subscriptions.cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}
{{/if}}
{{/if}}
</td>
</tr>

View File

@ -52,6 +52,7 @@ en:
status: Status
renews: Renews
created_at: Created
cancel: cancel
cancelled: cancelled
operations:
destroy: