Commit 933b562d authored by LianaHus's avatar LianaHus

added showHome to vertical icon panel

parent 8445cd98
......@@ -210,12 +210,8 @@ export class VerticalIcons {
}
updateActivations (name) {
if (name === 'home') {
this.activateHome()
} else {
this.removeActive()
this.addActive(name)
}
this.removeActive()
this.addActive(name)
}
onThemeChanged (themeType) {
......@@ -227,7 +223,10 @@ export class VerticalIcons {
}
}
activateHome () {
/**
* Show the home page
*/
showHome () {
globalRegistry.get('appmanager').api.ensureActivated('home')
}
......@@ -236,7 +235,7 @@ export class VerticalIcons {
<div
class="${css.homeIcon}"
onclick="${(e) => {
this.activateHome()
this.showHome()
}}"
plugin="${this.homeProfile.name}" title="${this.homeProfile.displayName}"
>
......
......@@ -11,7 +11,7 @@ export default {
})
verticalIcon.select('fileExplorers')
verticalIcon.select('home')
verticalIcon.showHome()
document.addEventListener('keypress', (e) => {
if (e.shiftKey && e.ctrlKey) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment