mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-27 19:20:39 -06:00
Fix plugin modal/notifier
This commit is contained in:
parent
367994c521
commit
0f6521fa6b
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user