Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ACS
P
Public
VILLASframework
VILLASweb
Commits
d40d5b29
Commit
d40d5b29
authored
Jan 21, 2020
by
Laura Fuentes Grau
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'example-dashboard' of git.rwth-aachen.de:acs/public/villas/web into example-dashboard
parents
9516ced5
251aec38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
src/dashboard/dashboard-button-group.js
src/dashboard/dashboard-button-group.js
+6
-12
No files found.
src/dashboard/dashboard-button-group.js
View file @
d40d5b29
...
...
@@ -40,20 +40,17 @@ class DashboardButtonGroup extends React.Component {
if
(
this
.
props
.
editing
)
{
buttons
.
push
(
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onSave
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-floppy-disk
"
><
/span> Sav
e
<
Icon
icon
=
"
save
"
/>
Save
<
/Button>
,
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onCancel
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-remove
"
><
/span> Cance
l
<
Icon
icon
=
"
times
"
/>
Cancel
<
/Button
>
);
}
else
{
if
(
this
.
props
.
fullscreen
!==
true
)
{
buttons
.
push
(
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onFullscreen
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-resize-full
"
><
/span> Fullscree
n
<
Icon
icon
=
"
expand
"
/>
Fullscreen
<
/Button
>
);
}
...
...
@@ -61,23 +58,20 @@ class DashboardButtonGroup extends React.Component {
if
(
this
.
props
.
paused
)
{
buttons
.
push
(
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onUnpause
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-play
"
><
/span> Liv
e
<
Icon
icon
=
"
play
"
/>
Live
<
/Button
>
);
}
else
{
buttons
.
push
(
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onPause
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-pause
"
><
/span> Paus
e
<
Icon
icon
=
"
pause
"
/>
Pause
<
/Button
>
);
}
buttons
.
push
(
<
Button
key
=
{
key
++
}
onClick
=
{
this
.
props
.
onEdit
}
style
=
{
buttonStyle
}
>
<
Icon
icon
=
"
info
"
/>
<
span
className
=
"
glyphicon glyphicon-pencil
"
><
/span> Edi
t
<
Icon
icon
=
"
pen
"
/>
Edit
<
/Button
>
);
}
...
...
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