DEV: Do not trigger missing icon warning in icon picker
This commit is contained in:
parent
f7c0cd1982
commit
6253ddc74e
|
@ -573,6 +573,7 @@ function warnIfMissing(id) {
|
|||
if (
|
||||
typeof Discourse !== "undefined" &&
|
||||
Discourse.Environment === "development" &&
|
||||
!Discourse.disableMissingIconWarning &&
|
||||
Discourse.SvgIconList &&
|
||||
Discourse.SvgIconList.indexOf(id) === -1
|
||||
) {
|
||||
|
|
|
@ -12,6 +12,10 @@ export default MultiSelectComponent.extend({
|
|||
this._super(...arguments);
|
||||
|
||||
this._cachedIconsList = null;
|
||||
|
||||
if (Discourse.Environment === "development") {
|
||||
Discourse.disableMissingIconWarning = true;
|
||||
}
|
||||
},
|
||||
|
||||
content: computed("value.[]", function() {
|
||||
|
@ -70,6 +74,10 @@ export default MultiSelectComponent.extend({
|
|||
this._super(...arguments);
|
||||
|
||||
this._cachedIconsList = null;
|
||||
|
||||
if (Discourse.Environment === "development") {
|
||||
delete Discourse.disableMissingIconWarning;
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
Loading…
Reference in New Issue