mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-16 13:12:56 +08:00
update 2026-10-21 17:03:19
This commit is contained in:
1 parent
4570f1512e
commit
a9612da342
14 files changed
+182
-21
No files matched your search
@@ -425,14 +425,11 @@ return view.extend({
|
||||
btn.disabled = true;
|
||||
} else if (updatable) {
|
||||
meta = _('installed') + ': ' + entry.r.installed + ' → ' + _('latest') + ': ' + entry.r.latest;
|
||||
} else if (cmp < 0) {
|
||||
meta = _('installed') + ': ' + entry.r.installed + ' · ' + _('feed version older: %s').format(entry.r.latest);
|
||||
btn.disabled = true;
|
||||
} else {
|
||||
meta = _('installed') + ': ' + entry.r.installed + ' · ' + _('up to date');
|
||||
btn.disabled = true;
|
||||
}
|
||||
const uncertain = entry.r.installed && (indexState !== 'success' || !entry.r.latest || cmp < 0);
|
||||
const uncertain = entry.r.installed && (indexState !== 'success' || !entry.r.latest);
|
||||
pkgBody.appendChild(mkRow(
|
||||
updatable ? '↑' : (uncertain ? '⚠' : (entry.r.installed ? '✓' : '✗')),
|
||||
updatable ? 'dd-up-new' : (uncertain ? 'dd-up-warn' : (entry.r.installed ? 'dd-up-ok' : 'dd-up-err')),
|
||||
|
||||
Reference in new issue
Block a user