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
fbcf0d6c
Commit
fbcf0d6c
authored
Sep 13, 2021
by
bunsenstraat
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix arrays
parent
d5667c59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
LocalPluginForm.tsx
...-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
+3
-2
No files found.
libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
View file @
fbcf0d6c
...
@@ -6,6 +6,7 @@ import { IframePlugin, WebsocketPlugin } from '@remixproject/engine-web'
...
@@ -6,6 +6,7 @@ import { IframePlugin, WebsocketPlugin } from '@remixproject/engine-web'
import
{
localPluginReducerActionType
,
localPluginToastReducer
}
from
'../reducers/pluginManagerReducer'
import
{
localPluginReducerActionType
,
localPluginToastReducer
}
from
'../reducers/pluginManagerReducer'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types'
import
{
isArray
}
from
'util'
interface
LocalPluginFormProps
{
interface
LocalPluginFormProps
{
closeModal
:
()
=>
void
closeModal
:
()
=>
void
...
@@ -49,10 +50,10 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor
...
@@ -49,10 +50,10 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor
setName
(
storagePlugin
.
name
)
setName
(
storagePlugin
.
name
)
setUrl
(
storagePlugin
.
url
)
setUrl
(
storagePlugin
.
url
)
setLocation
(
storagePlugin
.
location
as
'sidePanel'
|
'mainPanel'
|
'none'
)
setLocation
(
storagePlugin
.
location
as
'sidePanel'
|
'mainPanel'
|
'none'
)
setMethods
(
storagePlugin
.
methods
)
setMethods
(
isArray
(
storagePlugin
.
methods
)
?
storagePlugin
.
methods
.
join
(
','
)
:
storagePlugin
.
methods
)
setType
(
storagePlugin
.
type
)
setType
(
storagePlugin
.
type
)
setDisplayName
(
storagePlugin
.
displayName
)
setDisplayName
(
storagePlugin
.
displayName
)
setCanactivate
(
storagePlugin
.
canActivate
)
setCanactivate
(
isArray
(
storagePlugin
.
canActivate
)
?
storagePlugin
.
canActivate
.
join
(
','
)
:
storagePlugin
.
canActivate
)
},
[])
},
[])
const
handleModalOkClick
=
async
()
=>
{
const
handleModalOkClick
=
async
()
=>
{
...
...
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