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:
parent
dadc90bca2
commit
a5896799f1
9 changed files with 59 additions and 23 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue