From d4bc3b3fdeaa4dfa7b0efe2237ff8cf47e86c757 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 28 May 2019 19:36:32 +0200 Subject: [PATCH] added showHome to vertical icon panel --- src/app/components/vertical-icons.js | 15 +++++++-------- src/framingService.js | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/app/components/vertical-icons.js b/src/app/components/vertical-icons.js index 1553598285..2f00396f57 100644 --- a/src/app/components/vertical-icons.js +++ b/src/app/components/vertical-icons.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 {
diff --git a/src/framingService.js b/src/framingService.js index f728003826..a8703ce336 100644 --- a/src/framingService.js +++ b/src/framingService.js @@ -11,7 +11,7 @@ export default { }) verticalIcon.select('fileExplorers') - verticalIcon.select('home') + verticalIcon.showHome() document.addEventListener('keypress', (e) => { if (e.shiftKey && e.ctrlKey) {