DEV: Display FA 4.7 deprecation notice in all environments

FA 4.7 icon mapping will be removed soon.
This commit is contained in:
Penar Musaraj 2019-07-26 15:25:20 -04:00
parent f408c583e8
commit 042f7184f1

View File

@ -579,13 +579,9 @@ function warnIfMissing(id) {
}
function warnIfDeprecated(oldId, newId) {
if (
typeof Discourse !== "undefined" &&
Discourse.Environment === "development" &&
!Ember.testing
) {
deprecated(`Icon "${oldId}" is now "${newId}".`);
}
deprecated(
`Please replace all occurrences of "${oldId}"" with "${newId}". FontAwesome 4.7 icon names are now deprecated and will be removed in the next release.`
);
}
function handleIconId(icon) {