aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-14 13:44:17 +0200
committerChocobozzz <me@florianbigard.com>2021-06-14 13:44:17 +0200
commit0f6521fa6b4c2267ff4c06e2b639bb52d725e461 (patch)
tree959ec85e61e15bf0f005f856a0dd3a2f14d037b9 /client/src/app/core
parent367994c521c1f2349efd1845fb08562a1f1e0cd6 (diff)
downloadPeerTube-0f6521fa6b4c2267ff4c06e2b639bb52d725e461.tar.gz
PeerTube-0f6521fa6b4c2267ff4c06e2b639bb52d725e461.tar.zst
PeerTube-0f6521fa6b4c2267ff4c06e2b639bb52d725e461.zip
Fix plugin modal/notifier
Diffstat (limited to 'client/src/app/core')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts8
1 files changed, 4 insertions, 4 deletions
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 {
190 }, 190 },
191 191
192 notifier: { 192 notifier: {
193 info: (text: string, title?: string, timeout?: number) => this.notifier.info(text, title, timeout), 193 info: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.info(text, title, timeout)),
194 error: (text: string, title?: string, timeout?: number) => this.notifier.error(text, title, timeout), 194 error: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.error(text, title, timeout)),
195 success: (text: string, title?: string, timeout?: number) => this.notifier.success(text, title, timeout) 195 success: (text: string, title?: string, timeout?: number) => this.zone.run(() => this.notifier.success(text, title, timeout))
196 }, 196 },
197 197
198 showModal: (input: { 198 showModal: (input: {
@@ -202,7 +202,7 @@ export class PluginService implements ClientHook {
202 cancel?: { value: string, action?: () => void }, 202 cancel?: { value: string, action?: () => void },
203 confirm?: { value: string, action?: () => void } 203 confirm?: { value: string, action?: () => void }
204 }) => { 204 }) => {
205 this.customModal.show(input) 205 this.zone.run(() => this.customModal.show(input))
206 }, 206 },
207 207
208 markdownRenderer: { 208 markdownRenderer: {