mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Resolve and unsilence ember string prototype deprecation (#20448)
This commit is contained in:
parent
b12e51d309
commit
e82b8c2b06
@ -4,6 +4,7 @@ import TagShowRoute from "discourse/routes/tag-show";
|
||||
import User from "discourse/models/user";
|
||||
import buildCategoryRoute from "discourse/routes/build-category-route";
|
||||
import buildTopicRoute from "discourse/routes/build-topic-route";
|
||||
import { dasherize } from "@ember/string";
|
||||
|
||||
export default {
|
||||
after: "inject-discourse-objects",
|
||||
@ -39,7 +40,7 @@ export default {
|
||||
|
||||
const site = Site.current();
|
||||
site.get("filters").forEach((filter) => {
|
||||
const filterDasherized = filter.dasherize();
|
||||
const filterDasherized = dasherize(filter);
|
||||
app.register(
|
||||
`controller:discovery.${filterDasherized}`,
|
||||
DiscoverySortableController.extend()
|
||||
@ -106,7 +107,7 @@ export default {
|
||||
);
|
||||
|
||||
site.get("filters").forEach(function (filter) {
|
||||
const filterDasherized = filter.dasherize();
|
||||
const filterDasherized = dasherize(filter);
|
||||
|
||||
app.register(
|
||||
`route:tag.show-${filterDasherized}`,
|
||||
|
@ -4,7 +4,6 @@ globalThis.deprecationWorkflow.config = {
|
||||
// `throwOnUnhandled` here since it is easier to toggle.
|
||||
workflow: [
|
||||
{ handler: "silence", matchId: "ember-global" },
|
||||
{ handler: "silence", matchId: "ember-string.prototype-extensions" },
|
||||
{ handler: "silence", matchId: "ember.built-in-components.reopen" },
|
||||
{ handler: "silence", matchId: "ember.built-in-components.import" },
|
||||
{ handler: "silence", matchId: "implicit-injections" },
|
||||
|
Loading…
Reference in New Issue
Block a user