mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
refactor: add default value to secondary source
This commit is contained in:
committed by
Carlos Valente
parent
2e6bf234d5
commit
fd7ccb4a5b
@@ -25,10 +25,12 @@ const timerDisplayOptions: SelectOption[] = [
|
|||||||
|
|
||||||
export const getTimerOptions = (timeFormat: string, customFields: CustomFields): ViewOption[] => {
|
export const getTimerOptions = (timeFormat: string, customFields: CustomFields): ViewOption[] => {
|
||||||
const mainOptions = makeOptionsFromCustomFields(customFields, [
|
const mainOptions = makeOptionsFromCustomFields(customFields, [
|
||||||
|
{ value: 'none', label: 'None' },
|
||||||
{ value: 'title', label: 'Title' },
|
{ value: 'title', label: 'Title' },
|
||||||
{ value: 'note', label: 'Note' },
|
{ value: 'note', label: 'Note' },
|
||||||
]);
|
]);
|
||||||
const secondaryOptions = makeOptionsFromCustomFields(customFields, [
|
const secondaryOptions = makeOptionsFromCustomFields(customFields, [
|
||||||
|
{ value: 'none', label: 'None' },
|
||||||
{ value: 'title', label: 'Title' },
|
{ value: 'title', label: 'Title' },
|
||||||
{ value: 'note', label: 'Note' },
|
{ value: 'note', label: 'Note' },
|
||||||
]);
|
]);
|
||||||
@@ -84,7 +86,7 @@ export const getTimerOptions = (timeFormat: string, customFields: CustomFields):
|
|||||||
description: 'Select the data source for the main text',
|
description: 'Select the data source for the main text',
|
||||||
type: 'option',
|
type: 'option',
|
||||||
values: mainOptions,
|
values: mainOptions,
|
||||||
defaultValue: 'Title',
|
defaultValue: 'title',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'secondary-src',
|
id: 'secondary-src',
|
||||||
@@ -92,7 +94,7 @@ export const getTimerOptions = (timeFormat: string, customFields: CustomFields):
|
|||||||
description: 'Select the data source for the secondary text',
|
description: 'Select the data source for the secondary text',
|
||||||
type: 'option',
|
type: 'option',
|
||||||
values: secondaryOptions,
|
values: secondaryOptions,
|
||||||
defaultValue: '',
|
defaultValue: 'none',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user