From 23b33df0002c27580039bf925d29d988d391e8c7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 30 Sep 2019 13:43:46 +0200 Subject: [PATCH] use "none" for plugin that does not have kind --- src/app/components/vertical-icons.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/vertical-icons.js b/src/app/components/vertical-icons.js index b95f879836..e863828cb2 100644 --- a/src/app/components/vertical-icons.js +++ b/src/app/components/vertical-icons.js @@ -73,7 +73,7 @@ export class VerticalIcons extends Plugin { title="${title}"> ${name} ` - this.iconKind[kind || 'other'].appendChild(this.icons[name]) + this.iconKind[kind || 'none'].appendChild(this.icons[name]) } /** @@ -146,7 +146,7 @@ export class VerticalIcons extends Plugin { * @param {ModuleProfile} profile The profile of the module */ removeIcon ({kind, name}) { - if (this.icons[name]) this.iconKind[kind || 'other'].removeChild(this.icons[name]) + if (this.icons[name]) this.iconKind[kind || 'none'].removeChild(this.icons[name]) } /** @@ -335,7 +335,7 @@ export class VerticalIcons extends Plugin { ` - this.iconKind['other'] = yo` + this.iconKind['none'] = yo`
` @@ -354,7 +354,7 @@ export class VerticalIcons extends Plugin { ${this.iconKind['testing']} ${this.iconKind['analysis']} ${this.iconKind['debugging']} - ${this.iconKind['other']} + ${this.iconKind['none']} ${this.iconKind['settings']} `