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:
parent
fe787c8c12
commit
46231d0da2
@ -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 });
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user