From 245100587e6cd6c444f2048a6dfe6403074ffdae Mon Sep 17 00:00:00 2001 From: Benoit Laroche Date: Wed, 23 Jun 2021 15:09:51 +0200 Subject: [PATCH] Being able to pass router to new adhoc Vue instance --- src/plugin/js/constants.js | 3 ++- src/plugin/js/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugin/js/constants.js b/src/plugin/js/constants.js index b4064096b..4fd5f1e13 100644 --- a/src/plugin/js/constants.js +++ b/src/plugin/js/constants.js @@ -42,5 +42,6 @@ export const DEFAULT_OPTIONS = { customClass : '', verification : 'continue', verificationHelp : 'Type "[+:verification]" below to confirm', - promptHelp : 'Type in the box below and click "[+:okText]"' + promptHelp : 'Type in the box below and click "[+:okText]"', + forwardPlugin : {} } diff --git a/src/plugin/js/index.js b/src/plugin/js/index.js index 44fd016a2..35cd9138b 100644 --- a/src/plugin/js/index.js +++ b/src/plugin/js/index.js @@ -26,7 +26,7 @@ Plugin.prototype.mountIfNotMounted = function () { let node = document.createElement('div') document.querySelector('body').appendChild(node) - let Vm = new DialogConstructor() + let Vm = new DialogConstructor(this.globalOptions.forwardPlugin) Vm.registeredViews = this.registeredComponents()