mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:05:15 +08:00
DEV: unsilence deprecate-implicit-route-model (#27550)
* DEV: unsilence ember deprecation id deprecate-implicit-route-model
This commit is contained in:
parent
2301dddcff
commit
e46a5e5343
|
@ -1,6 +1,13 @@
|
||||||
|
import { service } from "@ember/service";
|
||||||
import DiscourseRoute from "discourse/routes/discourse";
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
|
|
||||||
export default class ReviewShow extends DiscourseRoute {
|
export default class ReviewShow extends DiscourseRoute {
|
||||||
|
@service store;
|
||||||
|
|
||||||
|
model({ reviewable_id }) {
|
||||||
|
return this.store.find("reviewable", reviewable_id);
|
||||||
|
}
|
||||||
|
|
||||||
setupController(controller, model) {
|
setupController(controller, model) {
|
||||||
controller.set("reviewable", model);
|
controller.set("reviewable", model);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,10 +13,5 @@ globalThis.deprecationWorkflow.config = {
|
||||||
handler: "silence",
|
handler: "silence",
|
||||||
matchId: "discourse.decorate-widget.hamburger-widget-links",
|
matchId: "discourse.decorate-widget.hamburger-widget-links",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
// From: Ember 5.3. Until: Ember 6.0
|
|
||||||
handler: "silence",
|
|
||||||
matchId: "deprecate-implicit-route-model",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user