diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/plugins/index.ts | 1 | ||||
-rw-r--r-- | shared/models/plugins/register-client-settings-script.model.ts | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shared/models/plugins/index.ts b/shared/models/plugins/index.ts index 96621460a..740083f0e 100644 --- a/shared/models/plugins/index.ts +++ b/shared/models/plugins/index.ts | |||
@@ -20,6 +20,7 @@ export * from './plugin-video-privacy-manager.model' | |||
20 | export * from './plugin.type' | 20 | export * from './plugin.type' |
21 | export * from './public-server.setting' | 21 | export * from './public-server.setting' |
22 | export * from './register-client-hook.model' | 22 | export * from './register-client-hook.model' |
23 | export * from './register-client-settings-script.model' | ||
23 | export * from './register-client-form-field.model' | 24 | export * from './register-client-form-field.model' |
24 | export * from './register-server-hook.model' | 25 | export * from './register-server-hook.model' |
25 | export * from './register-server-setting.model' | 26 | export * from './register-server-setting.model' |
diff --git a/shared/models/plugins/register-client-settings-script.model.ts b/shared/models/plugins/register-client-settings-script.model.ts new file mode 100644 index 000000000..ac16af366 --- /dev/null +++ b/shared/models/plugins/register-client-settings-script.model.ts | |||
@@ -0,0 +1,8 @@ | |||
1 | import { RegisterServerSettingOptions } from "./register-server-setting.model" | ||
2 | |||
3 | export interface RegisterClientSettingsScript { | ||
4 | isSettingHidden (options: { | ||
5 | setting: RegisterServerSettingOptions | ||
6 | formValues: { [name: string]: any } | ||
7 | }): boolean | ||
8 | } | ||