20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
import Controller from "@ember/controller";
|
|
|
|
export default 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);
|
|
},
|
|
},
|
|
});
|