From 0e2723f020c848f96a2b941c34fd185a5b1c3762 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 20 Sep 2017 13:08:06 -0700 Subject: [PATCH] Cleanup --- ui/src/shared/components/LayoutRenderer.js | 4 ---- ui/src/shared/components/NameableGraph.js | 5 +---- ui/src/style/pages/dashboards.scss | 9 --------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/ui/src/shared/components/LayoutRenderer.js b/ui/src/shared/components/LayoutRenderer.js index 91a84ffbcc..ec36610eb4 100644 --- a/ui/src/shared/components/LayoutRenderer.js +++ b/ui/src/shared/components/LayoutRenderer.js @@ -139,8 +139,6 @@ class LayoutRenderer extends Component { cells, onEditCell, onCancelEditCell, - onRenameCell, - onUpdateCell, onDeleteCell, onSummonOverlayTechnologies, timeRange, @@ -160,8 +158,6 @@ class LayoutRenderer extends Component { onCancelEditCell={onCancelEditCell} isEditable={isEditable} onEditCell={onEditCell} - onRenameCell={onRenameCell} - onUpdateCell={onUpdateCell} onDeleteCell={onDeleteCell} onSummonOverlayTechnologies={onSummonOverlayTechnologies} cell={cell} diff --git a/ui/src/shared/components/NameableGraph.js b/ui/src/shared/components/NameableGraph.js index 90804e0a43..4eda2aa633 100644 --- a/ui/src/shared/components/NameableGraph.js +++ b/ui/src/shared/components/NameableGraph.js @@ -46,7 +46,7 @@ class NameableGraph extends Component { } render() { - const {cell, children, isEditable, onEditCell} = this.props + const {cell, children, isEditable} = this.props const {cellName, isDeleting} = this.state const queries = _.get(cell, ['queries'], []) @@ -58,7 +58,6 @@ class NameableGraph extends Component { cell={cell} onDeleteClick={this.handleDeleteClick} onDelete={this.handleDeleteCell} - onRename={!cell.isEditing && isEditable ? onEditCell : () => {}} isDeleting={isDeleting} isEditable={isEditable} handleClickOutside={this.closeMenu} @@ -110,8 +109,6 @@ NameableGraph.propTypes = { queries: array, }).isRequired, children: node.isRequired, - onEditCell: func, - onRenameCell: func, onDeleteCell: func, onSummonOverlayTechnologies: func, isEditable: bool, diff --git a/ui/src/style/pages/dashboards.scss b/ui/src/style/pages/dashboards.scss index 9238c465f7..639721193a 100644 --- a/ui/src/style/pages/dashboards.scss +++ b/ui/src/style/pages/dashboards.scss @@ -132,7 +132,6 @@ $dash-graph-options-arrow: 8px; background-color: $g5-pepper; } } -.dash-graph--name-edit, .dash-graph--name { font-size: 13px; font-weight: 600; @@ -155,14 +154,6 @@ $dash-graph-options-arrow: 8px; .dash-graph-context__deleting + .dash-graph--heading .dash-graph--name { 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 { font-style: italic; }