1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Add ability to set custom field to video form

This commit is contained in:
Chocobozzz 2020-08-20 16:18:16 +02:00 committed by Chocobozzz
parent f95628636b
commit 7294aab0c8
30 changed files with 249 additions and 76 deletions

View file

@ -1,15 +1,10 @@
export interface RegisterServerSettingOptions {
name: string
label: string
type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
import { RegisterClientFormFieldOptions } from './register-client-form-field.model'
export interface RegisterServerSettingOptions extends RegisterClientFormFieldOptions {
// If the setting is not private, anyone can view its value (client code included)
// If the setting is private, only server-side hooks can access it
// Mainly used by the PeerTube client to get admin config
private: boolean
// Default setting value
default?: string | boolean
}
export interface RegisteredServerSettings {