]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
ui: repo status: do not duplicate warning to health icon
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 21:58:24 +0000 (23:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 21:58:27 +0000 (23:58 +0200)
It feels quite weird to have the last warning text duplicated, the
left health icon should be a very concise summary only.

allow one to force it by setting important, but that's not yet used
anywhere.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js

index 814f03f11077e2d45d04396c82e84d3ddad54dd7..7a0421de763b281d187e6ff69a9dddea39724a3a 100644 (file)
@@ -447,10 +447,10 @@ Ext.define('Proxmox.node.APTRepositories', {
 
            let addGood = message => store.add({ status: 'good', message });
 
-           let addWarn = message => {
+           let addWarn = (message, important) => {
                if (status !== 'critical') {
                    status = 'warning';
-                   text = message;
+                   text = important ? message : gettext('Warning');
                }
                store.add({ status: 'warning', message });
            };