added showHome to vertical icon panel

pull/3094/head
LianaHus 6 years ago
parent b882a0e5c6
commit d4bc3b3fde
  1. 15
      src/app/components/vertical-icons.js
  2. 2
      src/framingService.js

@ -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) {

Loading…
Cancel
Save