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
c7879814
Commit
c7879814
authored
Feb 18, 2019
by
Grandschtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch "getEntity" to "getOne"
parent
9e8d304b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
swap-panel-component.js
src/app/components/swap-panel-component.js
+1
-1
vertical-icons-component.js
src/app/components/vertical-icons-component.js
+2
-2
remixAppManager.js
src/remixAppManager.js
+2
-2
No files found.
src/app/components/swap-panel-component.js
View file @
c7879814
...
...
@@ -22,7 +22,7 @@ class SwapPanelComponent {
})
this
.
store
.
event
.
on
(
'activate'
,
(
name
)
=>
{
const
{
profile
,
api
}
=
this
.
store
.
get
Entity
(
name
)
const
{
profile
,
api
}
=
this
.
store
.
get
One
(
name
)
if
(((
profile
.
prefferedLocation
===
this
.
name
)
||
(
!
profile
.
prefferedLocation
&&
opt
.
default
))
&&
profile
.
icon
&&
api
.
render
&&
typeof
api
.
render
===
'function'
)
{
this
.
add
(
name
,
api
.
render
())
...
...
src/app/components/vertical-icons-component.js
View file @
c7879814
...
...
@@ -13,11 +13,11 @@ class VerticalIconComponent {
this
.
iconKind
=
{}
this
.
store
.
event
.
on
(
'activate'
,
(
name
)
=>
{
const
item
=
this
.
store
.
get
Entity
(
name
)
const
item
=
this
.
store
.
get
One
(
name
)
if
(
item
&&
item
.
profile
.
icon
&&
name
!==
'code editor'
)
this
.
addIcon
(
item
.
profile
)
})
this
.
store
.
event
.
on
(
'deactivate'
,
(
name
)
=>
{
const
item
=
this
.
store
.
get
Entity
(
name
)
const
item
=
this
.
store
.
get
One
(
name
)
if
(
item
&&
this
.
icons
[
name
])
this
.
removeIcon
(
item
.
profile
)
})
this
.
store
.
event
.
on
(
'add'
,
(
entity
)
=>
{
})
...
...
src/remixAppManager.js
View file @
c7879814
...
...
@@ -20,7 +20,7 @@ export class RemixAppManager extends AppManagerApi {
}
setActive
(
name
,
isActive
)
{
const
entity
=
this
.
get
Entity
(
name
)
const
entity
=
this
.
get
One
(
name
)
// temp
if
(
entity
&&
name
===
'solidity'
)
{
isActive
?
this
.
data
.
proxy
.
register
(
entity
.
api
)
:
this
.
data
.
proxy
.
unregister
(
entity
.
api
)
...
...
@@ -32,7 +32,7 @@ export class RemixAppManager extends AppManagerApi {
}
getEntity
(
entityName
)
{
return
this
.
store
.
get
Entity
(
entityName
)
return
this
.
store
.
get
One
(
entityName
)
}
addEntity
(
entity
)
{
...
...
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