|
|
@ -146,6 +146,7 @@ class PluginManagerComponent extends ViewPlugin { |
|
|
|
// Filtering helpers
|
|
|
|
// Filtering helpers
|
|
|
|
const isFiltered = (api) => api.name.toLowerCase().includes(this.filter) |
|
|
|
const isFiltered = (api) => api.name.toLowerCase().includes(this.filter) |
|
|
|
const isNotRequired = ({profile}) => !this.appManager.isRequired(profile.name) |
|
|
|
const isNotRequired = ({profile}) => !this.appManager.isRequired(profile.name) |
|
|
|
|
|
|
|
const isNotHome = ({profile}) => profile.name !== 'home' |
|
|
|
const sortByName = (a, b) => { |
|
|
|
const sortByName = (a, b) => { |
|
|
|
const nameA = a.name.toUpperCase() |
|
|
|
const nameA = a.name.toUpperCase() |
|
|
|
const nameB = b.name.toUpperCase() |
|
|
|
const nameB = b.name.toUpperCase() |
|
|
@ -156,6 +157,7 @@ class PluginManagerComponent extends ViewPlugin { |
|
|
|
const { actives, inactives } = this.appManager.getAll() |
|
|
|
const { actives, inactives } = this.appManager.getAll() |
|
|
|
.filter(isFiltered) |
|
|
|
.filter(isFiltered) |
|
|
|
.filter(isNotRequired) |
|
|
|
.filter(isNotRequired) |
|
|
|
|
|
|
|
.filter(isNotHome) |
|
|
|
.sort(sortByName) |
|
|
|
.sort(sortByName) |
|
|
|
.reduce(({actives, inactives}, api) => { |
|
|
|
.reduce(({actives, inactives}, api) => { |
|
|
|
return this.appManager.isActive(api.name) |
|
|
|
return this.appManager.isActive(api.name) |
|
|
|