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