mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
* fix: prevent add filter from submitting form * refactor: event clarifies whether automations exist but are disabled * refactor: improve readability of automation form * refactor: add affordance for field warnings * refactor: improve visibility of automation off state * refactor: apply warning styles to other feature toggles * Adding playback actions to automations (#2024) * adding intial automation actions * cleaning up * fixing formatting * ran oxfmt * switching action names to playback- to match the dropdown strings * fixing flicker that was caused by scroll arrows gettting unmounted --------- Co-authored-by: Cameron Slipp <cdslipp@gmail.com>
This commit is contained in:
@@ -68,15 +68,24 @@ const ontimeAuxTriggerAction = [
|
||||
|
||||
const ontimeAuxSetAction = ['aux1-set', 'aux2-set', 'aux3-set'] as const;
|
||||
|
||||
const ontimePlaybackAction = ['playback-start', 'playback-stop', 'playback-pause', 'playback-roll'] as const;
|
||||
|
||||
type OntimeAuxTriggerAction = (typeof ontimeAuxTriggerAction)[number];
|
||||
type OntimeAuxSetAction = (typeof ontimeAuxSetAction)[number];
|
||||
type OntimePlaybackAction = (typeof ontimePlaybackAction)[number];
|
||||
type OntimeMessageSet = 'message-set';
|
||||
type OntimeMessageSecondary = 'message-secondary';
|
||||
|
||||
export type OntimeActionKey = OntimeAuxTriggerAction | OntimeAuxSetAction | OntimeMessageSet | OntimeMessageSecondary;
|
||||
export type OntimeActionKey =
|
||||
| OntimeAuxTriggerAction
|
||||
| OntimePlaybackAction
|
||||
| OntimeAuxSetAction
|
||||
| OntimeMessageSet
|
||||
| OntimeMessageSecondary;
|
||||
|
||||
export const ontimeActionKeyValues = [
|
||||
...ontimeAuxTriggerAction,
|
||||
...ontimePlaybackAction,
|
||||
...ontimeAuxSetAction,
|
||||
'message-set',
|
||||
'message-secondary',
|
||||
@@ -87,6 +96,10 @@ export type OntimeAction =
|
||||
type: 'ontime';
|
||||
action: OntimeAuxTriggerAction;
|
||||
}
|
||||
| {
|
||||
type: 'ontime';
|
||||
action: OntimePlaybackAction;
|
||||
}
|
||||
| {
|
||||
type: 'ontime';
|
||||
action: OntimeAuxSetAction;
|
||||
|
||||
Reference in New Issue
Block a user