]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: realm: move sync job panel into realm panel
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Jun 2023 08:44:00 +0000 (10:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Jun 2023 15:23:22 +0000 (17:23 +0200)
and make it collapsible, so that users can hide it if they're not
interested in it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/AuthView.js
www/manager6/dc/Config.js

index 60332c3f3130761b5e216c2f9283406ae1e7a004..229c944b71844dd53037b05f0b28ce4cf81948b7 100644 (file)
@@ -130,11 +130,11 @@ Ext.define('PVE.dc.AuthView', {
                },
            ],
            listeners: {
-               activate: () => me.reload(),
                itemdblclick: () => me.run_editor(),
            },
        });
 
        me.callParent();
+       me.reload();
     },
 });
index bbe56125f047e74e26823ba81921f9ab7bec3177..1223ec92e70561c49feabd4c156d04b44bb2ea41 100644 (file)
@@ -134,18 +134,30 @@ Ext.define('PVE.dc.Config', {
                itemId: 'roles',
            },
            {
-               xtype: 'pveAuthView',
                title: gettext('Realms'),
+               xtype: 'panel',
+               layout: {
+                   type: 'border',
+               },
                groups: ['permissions'],
                iconCls: 'fa fa-address-book-o',
                itemId: 'domains',
-           },
-           {
-               xtype: 'pveRealmSyncJobView',
-               title: gettext('Realm Sync'),
-               groups: ['permissions'],
-               iconCls: 'fa fa-refresh',
-               itemId: 'realmsyncjobs',
+               items: [
+                   {
+                       xtype: 'pveAuthView',
+                       region: 'center',
+                       border: false,
+                   },
+                   {
+                       xtype: 'pveRealmSyncJobView',
+                       title: gettext('Sync Jobs'),
+                       region: 'south',
+                       collapsible: true,
+                       animCollapse: false,
+                       border: false,
+                       height: '50%',
+                   },
+               ],
            },
            {
                xtype: 'pveHAStatus',