From: Thomas Lamprecht Date: Fri, 2 Jul 2021 21:58:24 +0000 (+0200) Subject: ui: repo status: do not duplicate warning to health icon X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=46231d0da27ff622a3a0d457c70afbae820cb2a9;hp=fe787c8c126b38dd3d7646e5692cc8a45ed35ffd;p=proxmox-widget-toolkit.git ui: repo status: do not duplicate warning to health icon 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 --- diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 814f03f..7a0421d 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -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 }); };