diff --git a/assets/javascripts/discourse/models/admin-subscription.js.es6 b/assets/javascripts/discourse/models/admin-subscription.js.es6 index 9ef13f7..6fd6bfd 100644 --- a/assets/javascripts/discourse/models/admin-subscription.js.es6 +++ b/assets/javascripts/discourse/models/admin-subscription.js.es6 @@ -1,6 +1,12 @@ +import computed from "ember-addons/ember-computed-decorators"; import { ajax } from "discourse/lib/ajax"; -const AdminSubscription = Discourse.Model.extend({}); +const AdminSubscription = Discourse.Model.extend({ + @computed("created") + createdFormatted(created) { + return moment.unix(created).format(); + } +}); AdminSubscription.reopenClass({ find() { diff --git a/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-subscriptions.hbs b/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-subscriptions.hbs index 20d4d27..383f50a 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-subscriptions.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-subscriptions.hbs @@ -2,16 +2,18 @@
{{i18n 'discourse_patrons.admin.subscriptions.subscription.subscription_id'}} | +{{i18n 'discourse_patrons.admin.subscriptions.subscription.customer'}} | {{i18n 'discourse_patrons.admin.subscriptions.subscription.plan'}} | {{i18n 'discourse_patrons.admin.subscriptions.subscription.status'}} | +{{i18n 'discourse_patrons.admin.subscriptions.subscription.created_at'}} |
---|---|---|---|---|
{{subscription.id}} | +{{subscription.customer}} | {{subscription.plan.id}} | {{subscription.status}} | +{{format-date subscription.createdFormatted}} |