From 0f6521fa6b4c2267ff4c06e2b639bb52d725e461 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Jun 2021 13:44:17 +0200 Subject: Fix plugin modal/notifier --- client/src/app/core/plugins/plugin.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index bfd5ba4cc..16108e17a 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts @@ -190,9 +190,9 @@ export class PluginService implements ClientHook { }, notifier: { - info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout), - error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout), - success: (text: string, title?: string, timeout?: number) => this.notifier.success(text, title, timeout) + info: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.info(text, title, timeout)), + error: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.error(text, title, timeout)), + success: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.success(text, title, timeout)) }, showModal: (input: { @@ -202,7 +202,7 @@ export class PluginService implements ClientHook { cancel?: { value: string, action?: () => void }, confirm?: { value: string, action?: () => void } }) => { - this.customModal.show(input) + this.zone.run(() => this.customModal.show(input)) }, markdownRenderer: { -- cgit v1.2.3