mirror of
https://ghfast.top/https://github.com/discourse/discourse-cakeday.git
synced 2026-07-16 11:47:40 +08:00
20 lines
472 B
JavaScript
20 lines
472 B
JavaScript
import Controller from "@ember/controller";
|
|
import { action } from "@ember/object";
|
|
import computed from "discourse/lib/decorators";
|
|
|
|
export default class CakedayAnniversariesAllController extends Controller {
|
|
queryParams = ["month"];
|
|
month = moment().month() + 1;
|
|
|
|
@computed
|
|
months() {
|
|
return moment.months().map((month, index) => {
|
|
return { name: month, value: index + 1 };
|
|
});
|
|
}
|
|
|
|
@action
|
|
loadMore() {
|
|
this.get("model").loadMore();
|
|
}
|
|
}
|