From 2f230ccb40a32926b2f1c7e5dbe257879af12b7c Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 23 May 2019 00:04:00 +0200 Subject: [PATCH] renamed toggle function in vertical icon panel --- src/app/components/vertical-icons.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/app/components/vertical-icons.js b/src/app/components/vertical-icons.js index 14700327a5..1553598285 100644 --- a/src/app/components/vertical-icons.js +++ b/src/app/components/vertical-icons.js @@ -78,7 +78,7 @@ export class VerticalIcons { this.icons[name] = yo`
${name} @@ -200,6 +200,15 @@ export class VerticalIcons { this.events.emit('showContent', name) } + /** + * Toggles the plugin/module + * @param {string} name Name of profile of the module to activate + */ + toggle (name) { + this.updateActivations(name) + this.events.emit('toggleContent', name) + } + updateActivations (name) { if (name === 'home') { this.activateHome() @@ -218,11 +227,6 @@ export class VerticalIcons { } } - _iconClick (name) { - this.updateActivations(name) - this.events.emit('toggleContent', name) - } - activateHome () { globalRegistry.get('appmanager').api.ensureActivated('home') }