From f7247e2b843a30ea892b9874931825763e8f94c9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 18 May 2022 18:37:20 +0200 Subject: [PATCH] ui: datastore content: add icons to top bar prune/verify buttons Signed-off-by: Thomas Lamprecht --- www/datastore/Content.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/datastore/Content.js b/www/datastore/Content.js index 3a14d9ee..5697f6c3 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -938,7 +938,8 @@ Ext.define('PBS.DataStoreContent', { { handler: 'onVerify', getTip: (v, m, rec) => Ext.String.format(gettext("Verify '{0}'"), v), - getClass: (v, m, { data }) => data.ty === 'group' || data.ty === 'dir' ? 'pve-icon-verify-lettering' : 'pmx-hidden', + getClass: (v, m, { data }) => data.ty === 'group' || data.ty === 'dir' + ? 'pve-icon-verify-lettering' : 'pmx-hidden', isActionDisabled: (v, r, c, i, rec) => !!rec.data.leaf, }, { @@ -1175,11 +1176,13 @@ Ext.define('PBS.DataStoreContent', { { xtype: 'proxmoxButton', text: gettext('Verify All'), + iconCls: 'pve-icon-verify-lettering', handler: 'verifyAll', }, { xtype: 'proxmoxButton', text: gettext('Prune All'), + iconCls: 'fa fa-scissors', handler: 'pruneAll', }, '->',