discourse/app/assets/javascripts/admin/routes/admin-badges-award.js
2020-03-13 17:03:08 -04:00

13 lines
259 B
JavaScript

import Route from "discourse/routes/discourse";
export default Route.extend({
model(params) {
if (params.badge_id !== "new") {
return this.modelFor("adminBadges").findBy(
"id",
parseInt(params.badge_id, 10)
);
}
}
});