Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f0fbf19c
Unverified
Commit
f0fbf19c
authored
Jul 24, 2019
by
Liana Husikyan
Committed by
GitHub
Jul 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2218 from ethereum/toasterIssue
filter out home from the list of plugins
parents
7ecf32ff
f7113e2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
plugin-manager-component.js
src/app/components/plugin-manager-component.js
+2
-0
No files found.
src/app/components/plugin-manager-component.js
View file @
f0fbf19c
...
@@ -146,6 +146,7 @@ class PluginManagerComponent extends ViewPlugin {
...
@@ -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 {
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment