discourse-subscriptions/assets/javascripts/discourse/controllers/admin-plugins-discourse-sub...

18 lines
316 B
JavaScript

export default Ember.Controller.extend({
queryParams: ["order", "descending"],
order: null,
descending: true,
actions: {
loadMore() {},
orderPayments(order) {
if (order === this.get("order")) {
this.toggleProperty("descending");
}
this.set("order", order);
}
}
});