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

Add plugin settings change watcher

This commit is contained in:
Chocobozzz 2020-04-30 09:28:39 +02:00 committed by Chocobozzz
parent dadc90bca2
commit a5896799f1
9 changed files with 59 additions and 23 deletions

View file

@ -6,4 +6,6 @@ export interface PluginSettingsManager {
getSettings: (names: string[]) => Bluebird<{ [settingName: string]: string | boolean }>
setSetting: (name: string, value: string) => Bluebird<any>
onSettingsChange: (cb: (names: string[]) => void) => void
}

View file

@ -42,7 +42,7 @@ export interface RegisterServerAuthPassOptions extends RegisterServerAuthBase {
export interface RegisterServerAuthExternalOptions extends RegisterServerAuthBase {
// Will be displayed in a block next to the login form
authDisplayName: string
authDisplayName: () => string
onAuthRequest: (req: express.Request, res: express.Response) => void
}