mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
Fix updates menu
This commit is contained in:
parent
766e6dfd1e
commit
5362482dc2
1 changed files with 4 additions and 1 deletions
|
|
@ -740,17 +740,20 @@ print[[
|
|||
|
||||
if (rsp.status == 'installing') {
|
||||
$('#updates-info-li').html(']] print(i18n("updates.installing")) print[[')
|
||||
$('#updates-info-li').attr('title', '');
|
||||
$('#updates-install-li').hide();
|
||||
$('#admin-badge').hide();
|
||||
|
||||
} else if (rsp.status == 'checking') {
|
||||
$('#updates-info-li').html(']] print(i18n("updates.checking")) print[[');
|
||||
$('#updates-info-li').attr('title', '');
|
||||
$('#updates-install-li').hide();
|
||||
$('#admin-badge').hide();
|
||||
|
||||
} else if (rsp.status == 'update-avail' || rsp.status == 'upgrade-failure') {
|
||||
|
||||
$('#updates-info-li').html('<span class="badge badge-pill badge-danger">]] print(i18n("updates.available")) print[[</span> ]] print(info["product"]) print[[ ' + rsp.version + '!');
|
||||
$('#updates-info-li').html('<span class="badge badge-pill badge-danger">]] print(i18n("updates.available")) print[[</span> ]] print(info["product"]) print[[ ' + rsp.version);
|
||||
$('#updates-info-li').attr('title', '');
|
||||
|
||||
var icon = '<i class="fas fa-download"></i>';
|
||||
$('#updates-install-li').attr('title', '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue