mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 05:13:32 +00:00
23 lines
658 B
TypeScript
23 lines
658 B
TypeScript
import { getTimeOption } from '../../../common/components/view-params-editor/constants';
|
|
import { ViewOption } from '../../../common/components/view-params-editor/types';
|
|
|
|
export const getTimelineOptions = (timeFormat: string): ViewOption[] => {
|
|
return [
|
|
getTimeOption(timeFormat),
|
|
{
|
|
id: 'hidePast',
|
|
title: 'Hide Past Events',
|
|
description: 'Whether to hide events that have passed',
|
|
type: 'boolean',
|
|
defaultValue: false,
|
|
},
|
|
{
|
|
id: 'hideBackstage',
|
|
title: 'Hide Private Events',
|
|
description: 'Whether to hide non-public events',
|
|
type: 'boolean',
|
|
defaultValue: false,
|
|
},
|
|
];
|
|
};
|