discourse-subscriptions/assets/javascripts/discourse/routes/admin-plugins-discourse-subscriptions-coupons.js.es6
Justin DiRose 400313cded
FEATURE: Allow creation of coupons in admin panel (#43)
Adds full support to create coupon/promo codes in the Admin > Plugins > Subscriptions section of the plugin. The Create Coupon button opens a form on the same page, and the active checkboxes toggle the active status of the coupon code.
2021-01-13 11:47:22 -06:00

15 lines
292 B
JavaScript

import Route from "@ember/routing/route";
import AdminCoupon from "discourse/plugins/discourse-subscriptions/discourse/models/admin-coupon";
export default Route.extend({
model() {
return AdminCoupon.list();
},
actions: {
reloadModel() {
this.refresh();
},
},
});