mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
refactor: style tweaks and bug fixes
- italic and bold for rundown metadata entries - allow deleting groups - make groups in order - correct style for milestones - open playing groups - style tweaks
This commit is contained in:
+6
-2
@@ -107,7 +107,9 @@ export default function AutomationSettingsForm(props: AutomationSettingsProps) {
|
||||
<Switch
|
||||
size='large'
|
||||
checked={watch('enabledAutomations')}
|
||||
onCheckedChange={(value: boolean) => setValue('enabledAutomations', value, { shouldDirty: true })}
|
||||
onCheckedChange={(value: boolean) =>
|
||||
setValue('enabledAutomations', value, { shouldDirty: true, shouldValidate: true })
|
||||
}
|
||||
/>
|
||||
</Panel.ListItem>
|
||||
</Panel.ListGroup>
|
||||
@@ -125,7 +127,9 @@ export default function AutomationSettingsForm(props: AutomationSettingsProps) {
|
||||
<Switch
|
||||
size='large'
|
||||
checked={watch('enabledOscIn')}
|
||||
onCheckedChange={(value: boolean) => setValue('enabledOscIn', value, { shouldDirty: true })}
|
||||
onCheckedChange={(value: boolean) =>
|
||||
setValue('enabledOscIn', value, { shouldDirty: true, shouldValidate: true })
|
||||
}
|
||||
/>
|
||||
</Panel.ListItem>
|
||||
<Panel.ListItem>
|
||||
|
||||
@@ -22,8 +22,15 @@ interface TriggerFormProps {
|
||||
postSubmit: () => void;
|
||||
}
|
||||
|
||||
export default function TriggerForm(props: TriggerFormProps) {
|
||||
const { automations, initialId, initialTitle, initialAutomationId, initialTrigger, onCancel, postSubmit } = props;
|
||||
export default function TriggerForm({
|
||||
automations,
|
||||
initialId,
|
||||
initialTitle,
|
||||
initialAutomationId,
|
||||
initialTrigger,
|
||||
onCancel,
|
||||
postSubmit,
|
||||
}: TriggerFormProps) {
|
||||
const {
|
||||
handleSubmit,
|
||||
register,
|
||||
@@ -35,8 +42,8 @@ export default function TriggerForm(props: TriggerFormProps) {
|
||||
} = useForm<TriggerDTO>({
|
||||
defaultValues: {
|
||||
title: initialTitle,
|
||||
trigger: initialTrigger,
|
||||
automationId: initialAutomationId,
|
||||
trigger: initialTrigger ?? (cycles[0].value as TimerLifeCycle | undefined),
|
||||
automationId: initialAutomationId ?? automations?.[Object.keys(automations)[0]]?.id,
|
||||
},
|
||||
resetOptions: {
|
||||
keepDirtyValues: true,
|
||||
|
||||
@@ -36,9 +36,9 @@ const staticSelectProperties = [
|
||||
];
|
||||
|
||||
const staticNextSelectProperties = [
|
||||
{ value: 'eventNow.id', label: 'Next ID' },
|
||||
{ value: 'eventNow.title', label: 'Next Title' },
|
||||
{ value: 'eventNow.cue', label: 'Next Cue' },
|
||||
{ value: 'eventNext.id', label: 'Next ID' },
|
||||
{ value: 'eventNext.title', label: 'Next Title' },
|
||||
{ value: 'eventNext.cue', label: 'Next Cue' },
|
||||
];
|
||||
|
||||
type SelectableField = {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ export default function PreviewRundown(props: PreviewRundownProps) {
|
||||
const fieldLabels = fieldKeys.map((key) => customFields[key].label);
|
||||
|
||||
return (
|
||||
<Panel.Table>
|
||||
<Panel.Table className={style.nowrap}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
|
||||
Reference in New Issue
Block a user