ui: datastore: mark row invalid if last snapshot verification failed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-09-02 09:12:05 +02:00
parent 63d9aca96f
commit c879e5af11
1 changed files with 10 additions and 0 deletions

View File

@ -209,6 +209,7 @@ Ext.define('PBS.DataStoreContent', {
group.files = item.files;
group.size = item.size;
group.owner = item.owner;
verify.lastFailed = item.verification && item.verification.state !== 'ok';
}
if (item.verification &&
(!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: [
{
xtype: 'treecolumn',