From 582b29cabf7439360106d1c7d8c884a1f00aa357 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 17 Jun 2021 21:38:09 +0300 Subject: [PATCH] [common] Fix Bug 48242 --- apps/common/mobile/lib/controller/Plugins.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/common/mobile/lib/controller/Plugins.jsx b/apps/common/mobile/lib/controller/Plugins.jsx index e4f889def..2c64eaa2f 100644 --- a/apps/common/mobile/lib/controller/Plugins.jsx +++ b/apps/common/mobile/lib/controller/Plugins.jsx @@ -46,7 +46,6 @@ const PluginsController = inject('storeAppOptions')(observer(props => { api.asc_pluginButtonClick(index); }; - const showPluginModal = (plugin, variationIndex, frameId, urlAddition) => { let isAndroid = Device.android; let variation = plugin.get_Variations()[variationIndex]; @@ -68,7 +67,8 @@ const PluginsController = inject('storeAppOptions')(observer(props => { if ((storeAppOptions.isEdit || b.isViewer !== false)) { newBtns[index] = { text: b.text, - attributes: {result: index} + attributes: {result: index}, + close: false }; } }); @@ -123,8 +123,8 @@ const PluginsController = inject('storeAppOptions')(observer(props => { }; const pluginClose = plugin => { - if (iframe) { - iframe = null; + if (plugin) { + modal.close(); } };