mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-13 15:04:53 +00:00
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.
15 lines
292 B
JavaScript
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();
|
|
},
|
|
},
|
|
});
|