mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
[marketplace] Fix some problem with installing plugin without internet in desctop.
This commit is contained in:
@ -737,6 +737,12 @@ function onClickInstall(target, event) {
|
||||
let guid = target.parentNode.parentNode.getAttribute('data-guid');
|
||||
let plugin = findPlugin(true, guid);
|
||||
let installed = findPlugin(false, guid);
|
||||
if (!plugin && !installed) {
|
||||
// if we are here if means that plugin tab is opened, plugin is uninstalled and we don't have internet connection
|
||||
sendMessage( { type : "showButton", show : false } );
|
||||
onClickBack();
|
||||
toogleLoader(false);
|
||||
}
|
||||
let message = {
|
||||
type : 'install',
|
||||
url : (installed ? installed.obj.baseUrl : plugin.url),
|
||||
|
||||
Reference in New Issue
Block a user