Update palette manager properly when module updated

This commit is contained in:
Nick O'Leary
2019-01-07 14:54:35 +00:00
parent 43b7aa40c3
commit 19eb8e9a6d
4 changed files with 11 additions and 4 deletions

View File

@@ -289,7 +289,7 @@ RED.palette.editor = (function() {
}
if (moduleInfo.pending_version) {
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').show();
nodeEntry.updateButton.text(RED._('palette.editor.updated')).addClass('disabled').css('display', 'inline-block');
} else if (loadedIndex.hasOwnProperty(module)) {
if (semVerCompare(loadedIndex[module].version,moduleInfo.version) === 1) {
nodeEntry.updateButton.show();