From a5896799f169d3313b63165fe6a79d4149fa6df1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Apr 2020 09:28:39 +0200 Subject: Add plugin settings change watcher --- shared/models/plugins/plugin-settings-manager.model.ts | 2 ++ shared/models/plugins/register-server-auth.model.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'shared/models') diff --git a/shared/models/plugins/plugin-settings-manager.model.ts b/shared/models/plugins/plugin-settings-manager.model.ts index f83f53b8f..db88ae6e7 100644 --- a/shared/models/plugins/plugin-settings-manager.model.ts +++ b/shared/models/plugins/plugin-settings-manager.model.ts @@ -6,4 +6,6 @@ export interface PluginSettingsManager { getSettings: (names: string[]) => Bluebird<{ [settingName: string]: string | boolean }> setSetting: (name: string, value: string) => Bluebird + + onSettingsChange: (cb: (names: string[]) => void) => void } diff --git a/shared/models/plugins/register-server-auth.model.ts b/shared/models/plugins/register-server-auth.model.ts index 6539dc888..4ffce9456 100644 --- a/shared/models/plugins/register-server-auth.model.ts +++ b/shared/models/plugins/register-server-auth.model.ts @@ -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 } -- cgit v1.2.3