mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix package semver comparison to allow >1 version increment
This commit is contained in:
parent
b0955705be
commit
b5fda5642f
@ -331,7 +331,7 @@ RED.palette.editor = (function() {
|
|||||||
nodeEntry.versionSpan.html(moduleInfo.version+' <i class="fa fa-long-arrow-right"></i> '+moduleInfo.pending_version).appendTo(nodeEntry.metaRow)
|
nodeEntry.versionSpan.html(moduleInfo.version+' <i class="fa fa-long-arrow-right"></i> '+moduleInfo.pending_version).appendTo(nodeEntry.metaRow)
|
||||||
nodeEntry.updateButton.text(RED._('palette.editor.updated')).addClass('disabled').css('display', 'inline-block');
|
nodeEntry.updateButton.text(RED._('palette.editor.updated')).addClass('disabled').css('display', 'inline-block');
|
||||||
} else if (loadedIndex.hasOwnProperty(module)) {
|
} else if (loadedIndex.hasOwnProperty(module)) {
|
||||||
if (semVerCompare(loadedIndex[module].version,moduleInfo.version) === 1) {
|
if (semVerCompare(loadedIndex[module].version,moduleInfo.version) > 0) {
|
||||||
nodeEntry.updateButton.show();
|
nodeEntry.updateButton.show();
|
||||||
nodeEntry.updateButton.text(RED._('palette.editor.update',{version:loadedIndex[module].version}));
|
nodeEntry.updateButton.text(RED._('palette.editor.update',{version:loadedIndex[module].version}));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user