mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:42:46 +08:00
DEV: Display FA 4.7 deprecation notice in all environments
FA 4.7 icon mapping will be removed soon.
This commit is contained in:
parent
f408c583e8
commit
042f7184f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user