Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LaVizu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
behaviors-ai-public
LaVizu
Commits
fe67afd1
Commit
fe67afd1
authored
May 07, 2019
by
Dorian Goepp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code documentation
parent
1dc8929a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/utils/modeHandler.js
src/utils/modeHandler.js
+10
-0
No files found.
src/utils/modeHandler.js
View file @
fe67afd1
...
...
@@ -2,6 +2,16 @@ import React, {Component} from 'react';
import
Form
from
'
react-jsonschema-form
'
;
import
{
merge
}
from
'
lodash/object
'
;
/**
* This class will look for the `modes` attribute if the class passed as the `component` property. This object is used
* to add buttons to show a readme about the component or a settings form.
*
* All changes to the node's settings are saved through the updateConfig function (passed as props).
*
* Expected React properties :
* - component: class for the component to be instanciated
* - updateConfig & node: as provided by the `Board` component to all its children
*/
export
class
Modal
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
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