Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VILLASweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
VILLASweb
Commits
bb08991e
Commit
bb08991e
authored
May 12, 2020
by
Laura Fuentes Grau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for issues while adding a new dashboard
parent
ae830bb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/dashboard/new-dashboard.js
src/dashboard/new-dashboard.js
+1
-1
src/scenario/scenario.js
src/scenario/scenario.js
+5
-5
No files found.
src/dashboard/new-dashboard.js
View file @
bb08991e
...
...
@@ -69,7 +69,7 @@ class NewDashboardDialog extends React.Component {
return
(
<
Dialog
show
=
{
this
.
props
.
show
}
title
=
"
New Dashboard
"
buttonTitle
=
"
Add
"
onClose
=
{(
c
)
=>
this
.
onClose
(
c
)}
onReset
=
{()
=>
this
.
resetState
()}
valid
=
{
this
.
valid
}
>
<
form
>
<
FormGroup
controlId
=
"
name
"
validation
S
tate
=
{
this
.
validateForm
(
'
name
'
)}
>
<
FormGroup
controlId
=
"
name
"
validation
s
tate
=
{
this
.
validateForm
(
'
name
'
)}
>
<
FormLabel
>
Name
<
/FormLabel
>
<
FormControl
type
=
"
text
"
placeholder
=
"
Enter name
"
value
=
{
this
.
state
.
name
}
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
)}
/
>
<
FormControl
.
Feedback
/>
...
...
src/scenario/scenario.js
View file @
bb08991e
...
...
@@ -292,12 +292,12 @@ class Scenario extends React.Component {
closeNewDashboardModal
(
data
)
{
this
.
setState
({
newDashboardModal
:
false
});
let
newDashboard
=
data
;
// add default grid value and scenarioID
newDashboard
[
"
grid
"
]
=
15
;
newDashboard
[
"
scenarioID
"
]
=
this
.
state
.
scenario
.
id
;
if
(
data
)
{
let
newDashboard
=
data
;
// add default grid value and scenarioID
newDashboard
[
"
grid
"
]
=
15
;
newDashboard
[
"
scenarioID
"
]
=
this
.
state
.
scenario
.
id
;
AppDispatcher
.
dispatch
({
type
:
'
dashboards/start-add
'
,
data
,
...
...
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