mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-18 04:11:38 +00:00
ui: replication: backup: use renderEnabledIcon to render the enabled column
The new helper is available since proxmox-widget-toolkit version 3.6.1
which we can be sure to be available since a while in praxis, but
definitively by d/control constraints, since 51f54177
("bump
proxmox-widget-toolkit dependency to 4.0.7")
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
[TL: add context since when this function is available ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
461c5ee290
commit
bacb4173fb
@ -792,8 +792,7 @@ Ext.define('PVE.dc.BackupView', {
|
||||
width: 80,
|
||||
dataIndex: 'enabled',
|
||||
align: 'center',
|
||||
// TODO: switch to Proxmox.Utils.renderEnabledIcon once available
|
||||
renderer: enabled => `<i class="fa fa-${enabled ? 'check' : 'minus'}"></i>`,
|
||||
renderer: Proxmox.Utils.renderEnabledIcon,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
|
@ -283,8 +283,7 @@ Ext.define('PVE.grid.ReplicaView', {
|
||||
width: 80,
|
||||
dataIndex: 'enabled',
|
||||
align: 'center',
|
||||
// TODO: switch to Proxmox.Utils.renderEnabledIcon once available
|
||||
renderer: enabled => `<i class="fa fa-${enabled ? 'check' : 'minus'}"></i>`,
|
||||
renderer: Proxmox.Utils.renderEnabledIcon,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user