From c879e5af11ff6ff9718519188d9ee7d423666431 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 2 Sep 2020 09:12:05 +0200 Subject: [PATCH] ui: datastore: mark row invalid if last snapshot verification failed Signed-off-by: Thomas Lamprecht --- www/DataStoreContent.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index d23f2ef1..c3bf2b18 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -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',