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
1 changed files with 4 additions and 1 deletions

View File

@ -938,7 +938,8 @@ Ext.define('PBS.DataStoreContent', {
{ {
handler: 'onVerify', handler: 'onVerify',
getTip: (v, m, rec) => Ext.String.format(gettext("Verify '{0}'"), v), 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, isActionDisabled: (v, r, c, i, rec) => !!rec.data.leaf,
}, },
{ {
@ -1175,11 +1176,13 @@ Ext.define('PBS.DataStoreContent', {
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Verify All'), text: gettext('Verify All'),
iconCls: 'pve-icon-verify-lettering',
handler: 'verifyAll', handler: 'verifyAll',
}, },
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Prune All'), text: gettext('Prune All'),
iconCls: 'fa fa-scissors',
handler: 'pruneAll', handler: 'pruneAll',
}, },
'->', '->',