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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 23:58:24 +02:00
parent fe787c8c12
commit 46231d0da2

View 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 });
};