diff --git a/ui/src/clockface/components/component_spacer/ComponentSpacer.scss b/ui/src/clockface/components/component_spacer/ComponentSpacer.scss index 9bc8e0d551..88561317d8 100644 --- a/ui/src/clockface/components/component_spacer/ComponentSpacer.scss +++ b/ui/src/clockface/components/component_spacer/ComponentSpacer.scss @@ -6,6 +6,14 @@ .component-spacer { display: flex; flex-wrap: nowrap; + + &.component-spacer--stretch-w { + width: 100%; + } + + &.component-spacer--stretch-h { + height: 100%; + } } .component-spacer--left { @@ -24,10 +32,6 @@ flex-direction: row; align-items: center; - &.component-spacer--stretch { - width: 100%; - } - &.component-spacer--left > * { margin-right: $ix-marg-a; @@ -53,10 +57,6 @@ .component-spacer--vertical { flex-direction: column; - &.component-spacer--stretch { - height: 100%; - } - &.component-spacer--left { align-items: flex-start; } diff --git a/ui/src/clockface/components/component_spacer/ComponentSpacer.tsx b/ui/src/clockface/components/component_spacer/ComponentSpacer.tsx index 1357334301..569ad331b0 100644 --- a/ui/src/clockface/components/component_spacer/ComponentSpacer.tsx +++ b/ui/src/clockface/components/component_spacer/ComponentSpacer.tsx @@ -9,14 +9,16 @@ interface Props { children: JSX.Element | JSX.Element[] align: Alignment stackChildren?: Stack - stretchToFit?: boolean + stretchToFitWidth?: boolean + stretchToFitHeight?: boolean } const ComponentSpacer: SFC = ({ children, align, stackChildren = Stack.Columns, - stretchToFit = false, + stretchToFitWidth = false, + stretchToFitHeight = false, }) => (
= ({ 'component-spacer--right': align === Alignment.Right, 'component-spacer--horizontal': stackChildren === Stack.Columns, 'component-spacer--vertical': stackChildren === Stack.Rows, - 'component-spacer--stretch': stretchToFit, + 'component-spacer--stretch-w': stretchToFitWidth, + 'component-spacer--stretch-h': stretchToFitHeight, })} > {children} diff --git a/ui/src/clockface/components/index_views/IndexList.scss b/ui/src/clockface/components/index_views/IndexList.scss index 3972add946..3f26ef6073 100644 --- a/ui/src/clockface/components/index_views/IndexList.scss +++ b/ui/src/clockface/components/index_views/IndexList.scss @@ -200,18 +200,6 @@ ------------------------------------------------------------------------------ */ -.index-list--description { - user-select: none; - font-size: 12px; - color: $g12-forge; - white-space: nowrap; - - &.untitled { - color: $g9-mountain; - font-style: italic; - } -} - .index-list--labels { margin-left: $ix-marg-b; } diff --git a/ui/src/dashboards/components/dashboard_index/Contents.tsx b/ui/src/dashboards/components/dashboard_index/Contents.tsx index 0a47c37efb..902e93820c 100644 --- a/ui/src/dashboards/components/dashboard_index/Contents.tsx +++ b/ui/src/dashboards/components/dashboard_index/Contents.tsx @@ -20,6 +20,7 @@ interface Props { onCloneDashboard: (dashboard: Dashboard) => void onExportDashboard: (dashboard: Dashboard) => void onDeleteDashboard: (dashboard: Dashboard) => void + onUpdateDashboard: (dashboard: Dashboard) => void notify: (message: Notification) => void searchTerm: string } @@ -34,6 +35,7 @@ export default class DashboardsIndexContents extends Component { onCreateDashboard, defaultDashboardLink, onSetDefaultDashboard, + onUpdateDashboard, searchTerm, } = this.props @@ -48,6 +50,7 @@ export default class DashboardsIndexContents extends Component { onExportDashboard={onExportDashboard} defaultDashboardLink={defaultDashboardLink} onSetDefaultDashboard={onSetDefaultDashboard} + onUpdateDashboard={onUpdateDashboard} />
) diff --git a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx index f446bb1206..fd7baec5bf 100644 --- a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx +++ b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx @@ -28,6 +28,7 @@ import { getDashboardsAsync, importDashboardAsync, deleteDashboardAsync, + updateDashboardAsync, } from 'src/dashboards/actions/v2' import {setDefaultDashboard} from 'src/shared/actions/links' import {retainRangesDashTimeV1 as retainRangesDashTimeV1Action} from 'src/dashboards/actions/v2/ranges' @@ -59,6 +60,7 @@ interface Props { handleGetDashboards: typeof getDashboardsAsync handleDeleteDashboard: typeof deleteDashboardAsync handleImportDashboard: typeof importDashboardAsync + handleUpdateDashboard: typeof updateDashboardAsync notify: (message: Notification) => void retainRangesDashTimeV1: (dashboardIDs: string[]) => void dashboards: Dashboard[] @@ -88,7 +90,7 @@ class DashboardIndex extends PureComponent { } public render() { - const {dashboards, notify, links} = this.props + const {dashboards, notify, links, handleUpdateDashboard} = this.props const {searchTerm} = this.state return ( @@ -103,12 +105,6 @@ class DashboardIndex extends PureComponent { placeholderText="Filter dashboards by name..." onSearch={this.filterDashboards} /> -