Commit 3c6a106a authored by Olivia Madrid's avatar Olivia Madrid

(feat): fixed timespan filter and changed fake data timespan to 30d

1 merge request!614Analytics v2 finetune
Pipeline #92916645 passed with stages
in 46 minutes and 54 seconds
......@@ -40,7 +40,7 @@ export class AnalyticsFilterComponent implements OnInit {
updateFilter(option: Option) {
this.expanded = false;
if (!option.available) {
if ('available' in option && !option.available) {
return;
}
this.selectedOption = option;
......
......@@ -3,36 +3,16 @@ const fakeData: Array<any> = [
// CHART TESTS
loading: false,
category: 'traffic',
description:
'imma traffic description imma traffic description imma traffic description imma traffic description imma traffic description',
timespan: '28d',
timespan: '30d',
timespans: [
// {
// id: '30d',
// label: 'Last 30 days',
// interval: 'day',
// comparison_interval: 28,
// from_ts_ms: 1567296000000,
// from_ts_iso: '2019-09-01T00:00:00+00:00',
// selected: false,
// },
// {
// id: '1y',
// label: '1 year ago',
// interval: 'month',
// comparison_interval: 365,
// from_ts_ms: 1538352000000,
// from_ts_iso: '2018-10-01T00:00:00+00:00',
// selected: false,
// },
{
id: '28d',
label: 'Last 28 Days',
id: '30d',
label: 'Last 30 days',
interval: 'day',
comparison_interval: 365,
from_ts_ms: 1538352000000,
from_ts_iso: '2018-10-01T00:00:00+00:00',
selected: true,
comparison_interval: 30,
from_ts_ms: 1567296000000,
from_ts_iso: '2019-09-01T00:00:00+00:00',
selected: false,
},
{
id: '12m',
......@@ -54,7 +34,7 @@ const fakeData: Array<any> = [
{ id: 'all', label: 'All', available: true, selected: false },
{
id: 'browser',
label: 'BrowserBrowserBrowserBrowserBrowser',
label: 'Browser',
available: true,
selected: false,
},
......
Please register or to comment