[pve-devel] [PATCH manager 2/3] ui: realm sync: change enabled column rendering
Dominik Csapak
d.csapak at proxmox.com
Mon Jun 12 14:43:55 CEST 2023
to make it consistent with the repositories ui, since having a checkbox
that is not clickable is confusing
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/RealmSyncJob.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/www/manager6/dc/RealmSyncJob.js b/www/manager6/dc/RealmSyncJob.js
index 8a1fb2b2..74942829 100644
--- a/www/manager6/dc/RealmSyncJob.js
+++ b/www/manager6/dc/RealmSyncJob.js
@@ -49,16 +49,19 @@ Ext.define('PVE.dc.RealmSyncJobView', {
},
},
+ viewConfig: {
+ getRowClass: (record, _index) => record.get('enabled') ? '' : 'proxmox-disabled-row',
+ },
+
columns: [
{
header: gettext('Enabled'),
width: 80,
dataIndex: 'enabled',
- xtype: 'checkcolumn',
sortable: true,
- disabled: true,
- disabledCls: 'x-item-enabled',
+ align: 'center',
stopSelection: false,
+ renderer: Proxmox.Utils.renderEnabledIcon,
},
{
text: gettext('Name'),
--
2.30.2
More information about the pve-devel
mailing list