mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
[marketplace] Change the update check scheme for pre-installed plugins.
This commit is contained in:
@ -684,7 +684,7 @@ function createPluginDiv(plugin, bInstalled) {
|
||||
|
||||
let bHasUpdate = false;
|
||||
let bRemoved = (installed && installed.removed);
|
||||
if (bCheckUpdate && installed && plugin) {
|
||||
if (bCheckUpdate && installed && installed.canRemoved && plugin) {
|
||||
const installedV = getPluginVersion(installed.obj.version);
|
||||
const lastV = getPluginVersion(plugin.version);
|
||||
if (lastV > installedV) {
|
||||
@ -724,6 +724,7 @@ function createPluginDiv(plugin, bInstalled) {
|
||||
};
|
||||
|
||||
function onClickInstall(target, event) {
|
||||
// click install button
|
||||
event.stopImmediatePropagation();
|
||||
// click install button
|
||||
// we should do that because we have some problem when desctop is loading plugin
|
||||
|
||||
Reference in New Issue
Block a user