change(ui) - sessions and errors count
This commit is contained in:
parent
e1c633af99
commit
7b4a189588
2 changed files with 4 additions and 7 deletions
|
|
@ -28,9 +28,6 @@ function WidgetForm(props: Props) {
|
|||
const tableOptions = metricOf.filter(i => i.type === 'table');
|
||||
const isTable = metric.metricType === 'table';
|
||||
const isFunnel = metric.metricType === 'funnel';
|
||||
const isErrors = metric.metricType === 'errors';
|
||||
const isSessions = metric.metricType === 'sessions';
|
||||
const _issueOptions = [{ label: 'All', value: 'all' }].concat(issueOptions);
|
||||
const canAddToDashboard = metric.exists() && dashboards.length > 0;
|
||||
const canAddSeries = metric.series.length < 3;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,11 +40,11 @@ function WidgetPreview(props: Props) {
|
|||
return 'Time Series';
|
||||
} else if (isTable) {
|
||||
if (metric.metricOf === FilterKey.SESSIONS) {
|
||||
return 'Table of Sessions';
|
||||
// return <div>Sessions <span className="color-gray-medium">{metric.data.total}</span></div>;
|
||||
// return 'Table of Sessions';
|
||||
return <div>Sessions <span className="color-gray-medium">{metric.data.total}</span></div>;
|
||||
} else if (metric.metricOf === FilterKey.ERRORS) {
|
||||
return 'Table of Errors';
|
||||
// return <div>Errors <span className="color-gray-medium">{metric.data.total}</span></div>;
|
||||
// return 'Table of Errors';
|
||||
return <div>Errors <span className="color-gray-medium">{metric.data.total}</span></div>;
|
||||
} else {
|
||||
return 'Table';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue