|
|
@ -196,9 +196,17 @@ export class VerticalIcons { |
|
|
|
* @param {string} name Name of profile of the module to activate |
|
|
|
* @param {string} name Name of profile of the module to activate |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
select (name) { |
|
|
|
select (name) { |
|
|
|
|
|
|
|
this.updateActivations(name) |
|
|
|
|
|
|
|
this.events.emit('showContent', name) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateActivations(name) { |
|
|
|
|
|
|
|
if (name === "home") { |
|
|
|
|
|
|
|
this.activateHome() |
|
|
|
|
|
|
|
} else { |
|
|
|
this.removeActive() |
|
|
|
this.removeActive() |
|
|
|
this.addActive(name) |
|
|
|
this.addActive(name) |
|
|
|
this.events.emit('showContent', name) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onThemeChanged (themeType) { |
|
|
|
onThemeChanged (themeType) { |
|
|
@ -211,17 +219,20 @@ export class VerticalIcons { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_iconClick (name) { |
|
|
|
_iconClick (name) { |
|
|
|
this.removeActive() |
|
|
|
this.updateActivations(name) |
|
|
|
this.addActive(name) |
|
|
|
|
|
|
|
this.events.emit('toggleContent', name) |
|
|
|
this.events.emit('toggleContent', name) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
activateHome() { |
|
|
|
|
|
|
|
globalRegistry.get('appmanager').api.ensureActivated('home') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
let home = yo` |
|
|
|
let home = yo` |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="${css.homeIcon}" |
|
|
|
class="${css.homeIcon}" |
|
|
|
onclick="${(e) => { |
|
|
|
onclick="${(e) => { |
|
|
|
globalRegistry.get('appmanager').api.ensureActivated('home') |
|
|
|
this.activateHome() |
|
|
|
}}" |
|
|
|
}}" |
|
|
|
plugin="${this.homeProfile.name}" title="${this.homeProfile.displayName}" |
|
|
|
plugin="${this.homeProfile.name}" title="${this.homeProfile.displayName}" |
|
|
|
> |
|
|
|
> |
|
|
|