diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 2e0dbc98e9..bf9ac34605 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -1,5 +1,6 @@ var yo = require('yo-yo') var csjs = require('csjs-inject') +var helper = require('../../lib/helper') const EventEmitter = require('events') @@ -62,8 +63,8 @@ class VerticalIconComponent { /** * Set a new status for the @arg name - * @param {name} - * @param {status} + * @param {String} name + * @param {Object} status */ setIconStatus (name, status) { const el = this.icons[name] @@ -73,7 +74,10 @@ class VerticalIconComponent { el.removeChild(statusEl) } if (status.key) { - el.appendChild(yo``) + let key = helper.checkSpecialChars(status.key) ? '' : status.key + let type = helper.checkSpecialChars(status.type) ? '' : status.type + let title = helper.checkSpecialChars(status.title) ? '' : status.title + el.appendChild(yo``) } }