Cleanup
parent
33a3427c08
commit
d49da08d3f
|
@ -139,8 +139,6 @@ class LayoutRenderer extends Component {
|
||||||
cells,
|
cells,
|
||||||
onEditCell,
|
onEditCell,
|
||||||
onCancelEditCell,
|
onCancelEditCell,
|
||||||
onRenameCell,
|
|
||||||
onUpdateCell,
|
|
||||||
onDeleteCell,
|
onDeleteCell,
|
||||||
onSummonOverlayTechnologies,
|
onSummonOverlayTechnologies,
|
||||||
timeRange,
|
timeRange,
|
||||||
|
@ -160,8 +158,6 @@ class LayoutRenderer extends Component {
|
||||||
onCancelEditCell={onCancelEditCell}
|
onCancelEditCell={onCancelEditCell}
|
||||||
isEditable={isEditable}
|
isEditable={isEditable}
|
||||||
onEditCell={onEditCell}
|
onEditCell={onEditCell}
|
||||||
onRenameCell={onRenameCell}
|
|
||||||
onUpdateCell={onUpdateCell}
|
|
||||||
onDeleteCell={onDeleteCell}
|
onDeleteCell={onDeleteCell}
|
||||||
onSummonOverlayTechnologies={onSummonOverlayTechnologies}
|
onSummonOverlayTechnologies={onSummonOverlayTechnologies}
|
||||||
cell={cell}
|
cell={cell}
|
||||||
|
|
|
@ -46,7 +46,7 @@ class NameableGraph extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {cell, children, isEditable, onEditCell} = this.props
|
const {cell, children, isEditable} = this.props
|
||||||
|
|
||||||
const {cellName, isDeleting} = this.state
|
const {cellName, isDeleting} = this.state
|
||||||
const queries = _.get(cell, ['queries'], [])
|
const queries = _.get(cell, ['queries'], [])
|
||||||
|
@ -58,7 +58,6 @@ class NameableGraph extends Component {
|
||||||
cell={cell}
|
cell={cell}
|
||||||
onDeleteClick={this.handleDeleteClick}
|
onDeleteClick={this.handleDeleteClick}
|
||||||
onDelete={this.handleDeleteCell}
|
onDelete={this.handleDeleteCell}
|
||||||
onRename={!cell.isEditing && isEditable ? onEditCell : () => {}}
|
|
||||||
isDeleting={isDeleting}
|
isDeleting={isDeleting}
|
||||||
isEditable={isEditable}
|
isEditable={isEditable}
|
||||||
handleClickOutside={this.closeMenu}
|
handleClickOutside={this.closeMenu}
|
||||||
|
@ -110,8 +109,6 @@ NameableGraph.propTypes = {
|
||||||
queries: array,
|
queries: array,
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
children: node.isRequired,
|
children: node.isRequired,
|
||||||
onEditCell: func,
|
|
||||||
onRenameCell: func,
|
|
||||||
onDeleteCell: func,
|
onDeleteCell: func,
|
||||||
onSummonOverlayTechnologies: func,
|
onSummonOverlayTechnologies: func,
|
||||||
isEditable: bool,
|
isEditable: bool,
|
||||||
|
|
|
@ -132,7 +132,6 @@ $dash-graph-options-arrow: 8px;
|
||||||
background-color: $g5-pepper;
|
background-color: $g5-pepper;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dash-graph--name-edit,
|
|
||||||
.dash-graph--name {
|
.dash-graph--name {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -155,14 +154,6 @@ $dash-graph-options-arrow: 8px;
|
||||||
.dash-graph-context__deleting + .dash-graph--heading .dash-graph--name {
|
.dash-graph-context__deleting + .dash-graph--heading .dash-graph--name {
|
||||||
width: calc(100% - 87px);
|
width: calc(100% - 87px);
|
||||||
}
|
}
|
||||||
input.form-control.dash-graph--name-edit {
|
|
||||||
margin-left: 8px;
|
|
||||||
padding: 0 6px;
|
|
||||||
width: calc(100% - 42px);
|
|
||||||
height: 26px !important;
|
|
||||||
line-height: (26px - 4px) !important;
|
|
||||||
position: relative;
|
|
||||||
top: -1px; // Fix for slight offset
|
|
||||||
.dash-graph--name.dash-graph--name__default {
|
.dash-graph--name.dash-graph--name__default {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue