get variant modal to submit to api and update values

This commit is contained in:
gingervitis
2021-01-16 19:46:19 -08:00
committed by Gabe Kangas
parent 4efc644955
commit 2ddce9b75a
5 changed files with 136 additions and 62 deletions

View File

@@ -20,9 +20,11 @@ export interface ToggleSwitchProps {
disabled?: boolean;
}
export type FieldUpdaterFunc = (args: UpdateArgs) => void;
export interface UpdateArgs {
fieldName: string;
value: string;
value: any;
path?: string;
}
@@ -50,11 +52,11 @@ export interface ConfigInstanceDetailsFields {
}
export type PRESETS = 'fast' | 'faster' | 'veryfast' | 'superfast' | 'ultrafast';
export type PRESET = 'fast' | 'faster' | 'veryfast' | 'superfast' | 'ultrafast';
export interface VideoVariant {
key?: number; // unique identifier generated on client side just for ant table rendering
encoderPreset: PRESETS,
encoderPreset: PRESET,
framerate: number;
audioPassthrough: boolean;