diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-09 13:50:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-09 13:50:31 +0200 |
commit | 3c47fa3bc0e3f2362bb17976057287a7e9aba46b (patch) | |
tree | 0f74d23e219e7c917034d9cd394fabc4668f16fa /shared/models/plugins/register-client-settings-script.model.ts | |
parent | c713017f3cd2d617da22c24c579342ec4121cfcd (diff) | |
download | PeerTube-3c47fa3bc0e3f2362bb17976057287a7e9aba46b.tar.gz PeerTube-3c47fa3bc0e3f2362bb17976057287a7e9aba46b.tar.zst PeerTube-3c47fa3bc0e3f2362bb17976057287a7e9aba46b.zip |
Add ability to hide plugin settings
Diffstat (limited to 'shared/models/plugins/register-client-settings-script.model.ts')
-rw-r--r-- | shared/models/plugins/register-client-settings-script.model.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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 | } | ||