mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:08:44 +08:00
13 lines
259 B
JavaScript
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)
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
});
|