ui: datastore: mark row invalid if last snapshot verification failed
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
63d9aca96f
commit
c879e5af11
|
@ -209,6 +209,7 @@ Ext.define('PBS.DataStoreContent', {
|
||||||
group.files = item.files;
|
group.files = item.files;
|
||||||
group.size = item.size;
|
group.size = item.size;
|
||||||
group.owner = item.owner;
|
group.owner = item.owner;
|
||||||
|
verify.lastFailed = item.verification && item.verification.state !== 'ok';
|
||||||
}
|
}
|
||||||
if (item.verification &&
|
if (item.verification &&
|
||||||
(!group.verification || group.verification.state !== 'failed')) {
|
(!group.verification || group.verification.state !== 'failed')) {
|
||||||
|
@ -461,6 +462,15 @@ Ext.define('PBS.DataStoreContent', {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
viewConfig: {
|
||||||
|
getRowClass: function(record, index) {
|
||||||
|
let verify = record.get('verification');
|
||||||
|
if (verify && verify.lastFailed) {
|
||||||
|
return 'proxmox-invalid-row';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
xtype: 'treecolumn',
|
xtype: 'treecolumn',
|
||||||
|
|
Loading…
Reference in New Issue