mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
fix icons of dashboard button group
This commit is contained in:
parent
374437dfad
commit
251aec38d9
1 changed files with 6 additions and 12 deletions
|
@ -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> Save
|
||||
<Icon icon="save" /> Save
|
||||
</Button>,
|
||||
<Button key={key++} onClick={this.props.onCancel} style={buttonStyle}>
|
||||
<Icon icon="info" />
|
||||
<span className="glyphicon glyphicon-remove" ></span> Cancel
|
||||
<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> Fullscreen
|
||||
<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> Live
|
||||
<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> Pause
|
||||
<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> Edit
|
||||
<Icon icon="pen" /> Edit
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue