]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: realm sync: change enabled column rendering
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Jun 2023 08:43:59 +0000 (10:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Jun 2023 15:23:22 +0000 (17:23 +0200)
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@proxmox.com>
www/manager6/dc/RealmSyncJob.js

index e12ad858c0437be596d32aa1e138b8e5e80f040e..9541d7324a114f4adfb88f8e1de2a509c80cc019 100644 (file)
@@ -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'),