From f7113e2fa88326b0d8bf662cf682d964f0619570 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 24 Jul 2019 10:47:36 +0200 Subject: [PATCH] filter put home from the list of plugins --- src/app/components/plugin-manager-component.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/plugin-manager-component.js b/src/app/components/plugin-manager-component.js index 2fc253ad7a..7e2b47d0c2 100644 --- a/src/app/components/plugin-manager-component.js +++ b/src/app/components/plugin-manager-component.js @@ -146,6 +146,7 @@ class PluginManagerComponent extends ViewPlugin { // Filtering helpers const isFiltered = (api) => api.name.toLowerCase().includes(this.filter) const isNotRequired = ({profile}) => !this.appManager.isRequired(profile.name) + const isNotHome = ({profile}) => profile.name !== 'home' const sortByName = (a, b) => { const nameA = a.name.toUpperCase() const nameB = b.name.toUpperCase() @@ -156,6 +157,7 @@ class PluginManagerComponent extends ViewPlugin { const { actives, inactives } = this.appManager.getAll() .filter(isFiltered) .filter(isNotRequired) + .filter(isNotHome) .sort(sortByName) .reduce(({actives, inactives}, api) => { return this.appManager.isActive(api.name)