Files
discourse-subscriptions/assets/javascripts/discourse/controllers/admin-plugins-discourse-subscriptions-dashboard.js
T

21 lines
445 B
JavaScript
Raw Normal View History

import Controller from "@ember/controller";
2024-11-29 15:42:50 +00:00
import { action } from "@ember/object";
2024-11-29 15:42:50 +00:00
export default class AdminPluginsDiscourseSubscriptionsDashboardController extends Controller {
queryParams = ["order", "descending"];
order = null;
descending = true;
2019-09-23 15:01:03 +10:00
2024-11-29 15:42:50 +00:00
@action
loadMore() {}
2019-09-23 15:01:03 +10:00
2024-11-29 15:42:50 +00:00
@action
orderPayments(order) {
if (order === this.get("order")) {
this.toggleProperty("descending");
}
2019-09-23 15:01:03 +10:00
2024-11-29 15:42:50 +00:00
this.set("order", order);
}
}