ui: datastore content: add icons to top bar prune/verify buttons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-18 18:37:20 +02:00
parent 5664b41c30
commit f7247e2b84

View File

@ -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',
},
'->',