Skip to content

Commit

Permalink
Feature/monitor list externel linking (#53098)
Browse files Browse the repository at this point in the history
* update monitor list columns

* update columns

* update snaps

* fix type

* removed unused ii8n
  • Loading branch information
shahzad31 authored Dec 18, 2019
1 parent d4c6e65 commit 862265a
Show file tree
Hide file tree
Showing 17 changed files with 291 additions and 291 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
} from '@elastic/charts';
import { i18n } from '@kbn/i18n';
import React from 'react';
import { FormattedMessage } from '@kbn/i18n/react';
import { EuiText, EuiToolTip } from '@elastic/eui';
import { SummaryHistogramPoint } from '../../../../common/graphql/types';
import { getColorsMap } from './get_colors_map';
import { getChartDateLabel, seriesHasDownValues } from '../../../lib/helper';
Expand Down Expand Up @@ -54,7 +56,7 @@ export const MonitorBarSeries = ({
const id = getSpecId('downSeries');

return seriesHasDownValues(histogramSeries) ? (
<div style={{ height: 50, width: '100%' }}>
<div style={{ height: 50, width: '100%', maxWidth: '1200px' }}>
<Chart>
<Settings xDomain={{ min: absoluteStartDate, max: absoluteEndDate }} />
<Axis
Expand All @@ -78,5 +80,18 @@ export const MonitorBarSeries = ({
/>
</Chart>
</div>
) : null;
) : (
<EuiToolTip
position="top"
content={
<FormattedMessage
id="xpack.uptime.monitorList.noDownHistory"
defaultMessage="This monitor has never been {emphasizedText} during the selected time range."
values={{ emphasizedText: <strong>down</strong> }}
/>
}
>
<EuiText color="secondary">--</EuiText>
</EuiToolTip>
);
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 862265a

Please sign in to comment.