[common] Fix Bug 48242
This commit is contained in:
parent
0b19e0948f
commit
582b29cabf
|
@ -46,7 +46,6 @@ const PluginsController = inject('storeAppOptions')(observer(props => {
|
||||||
api.asc_pluginButtonClick(index);
|
api.asc_pluginButtonClick(index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const showPluginModal = (plugin, variationIndex, frameId, urlAddition) => {
|
const showPluginModal = (plugin, variationIndex, frameId, urlAddition) => {
|
||||||
let isAndroid = Device.android;
|
let isAndroid = Device.android;
|
||||||
let variation = plugin.get_Variations()[variationIndex];
|
let variation = plugin.get_Variations()[variationIndex];
|
||||||
|
@ -68,7 +67,8 @@ const PluginsController = inject('storeAppOptions')(observer(props => {
|
||||||
if ((storeAppOptions.isEdit || b.isViewer !== false)) {
|
if ((storeAppOptions.isEdit || b.isViewer !== false)) {
|
||||||
newBtns[index] = {
|
newBtns[index] = {
|
||||||
text: b.text,
|
text: b.text,
|
||||||
attributes: {result: index}
|
attributes: {result: index},
|
||||||
|
close: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -123,8 +123,8 @@ const PluginsController = inject('storeAppOptions')(observer(props => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const pluginClose = plugin => {
|
const pluginClose = plugin => {
|
||||||
if (iframe) {
|
if (plugin) {
|
||||||
iframe = null;
|
modal.close();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue