From 3c065fe3b3e1385d59ad1980251d14b712648155 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Dec 2021 18:02:36 +0100 Subject: Enhance plugin video fields Add video form tab selection Add ability to display an error --- shared/models/plugins/client/register-client-form-field.model.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shared/models') diff --git a/shared/models/plugins/client/register-client-form-field.model.ts b/shared/models/plugins/client/register-client-form-field.model.ts index 2df071337..30fd63266 100644 --- a/shared/models/plugins/client/register-client-form-field.model.ts +++ b/shared/models/plugins/client/register-client-form-field.model.ts @@ -16,8 +16,15 @@ export type RegisterClientFormFieldOptions = { // Not supported by plugin setting registration, use registerSettingsScript instead hidden?: (options: any) => boolean + + // Return undefined | null if there is no error or return a string with the detailed error + // Not supported by plugin setting registration + error?: (options: any) => { error: boolean, text?: string } } export interface RegisterClientVideoFieldOptions { type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live' + + // Default to 'plugin-settings' + tab?: 'main' | 'plugin-settings' } -- cgit v1.2.3