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
3ab3f4ba
Commit
3ab3f4ba
authored
Jan 15, 2019
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inactive / active mods almost getting ordered
parent
e1d476f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
plugin-manager-component.js
src/app/components/plugin-manager-component.js
+26
-3
No files found.
src/app/components/plugin-manager-component.js
View file @
3ab3f4ba
...
...
@@ -36,16 +36,39 @@ class PluginManagerComponent {
}
render
()
{
this
.
views
.
activeMods
=
yo
`
<div class=
${
css
.
activeModules
}
>
<h3>Active Modules</h3>
</div>
`
this
.
views
.
inactiveMods
=
yo
`
<div class=
${
css
.
inactiveModules
}
>
<h3>Inactive Modules</h3>
</div>
`
this
.
views
.
root
=
yo
`
<div id='pluginManager' class=
${
css
.
plugins_settings
}
>
<h2>Plugin Manager</h2>
<h2>Plugin Manager</h2>
${
this
.
views
.
activeMods
}
${
this
.
views
.
inactiveMods
}
</div>
`
// loop through actives - to put them through in 1 chunk
var
modulesActive
=
this
.
store
.
getActives
()
modulesActive
.
forEach
((
mod
)
=>
{
this
.
views
.
root
.
appendChild
(
this
.
renderItem
(
mod
.
profile
.
name
))
this
.
views
.
activeMods
.
appendChild
(
this
.
renderItem
(
mod
.
profile
.
name
))
})
// loop through all - if 1 is an active forget it
// or update the store.js
// actives get put into store where
var
modulesAll
=
this
.
store
.
getAll
()
modulesAll
.
forEach
((
mod
)
=>
{
if
(
!
(
modulesActive
.
includes
(
mod
))
)
{
this
.
views
.
inactiveMods
.
appendChild
(
this
.
renderItem
(
mod
.
profile
.
name
))
}
})
return
this
.
views
.
root
}
...
...
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