ui: realm: move sync job panel into realm panel

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>
This commit is contained in:
Dominik Csapak 2023-06-13 10:44:00 +02:00 committed by Thomas Lamprecht
parent 059abb7a30
commit 4c8fcdd7af
2 changed files with 21 additions and 9 deletions

View File

@ -130,11 +130,11 @@ Ext.define('PVE.dc.AuthView', {
}, },
], ],
listeners: { listeners: {
activate: () => me.reload(),
itemdblclick: () => me.run_editor(), itemdblclick: () => me.run_editor(),
}, },
}); });
me.callParent(); me.callParent();
me.reload();
}, },
}); });

View File

@ -134,18 +134,30 @@ Ext.define('PVE.dc.Config', {
itemId: 'roles', itemId: 'roles',
}, },
{ {
xtype: 'pveAuthView',
title: gettext('Realms'), title: gettext('Realms'),
xtype: 'panel',
layout: {
type: 'border',
},
groups: ['permissions'], groups: ['permissions'],
iconCls: 'fa fa-address-book-o', iconCls: 'fa fa-address-book-o',
itemId: 'domains', itemId: 'domains',
}, items: [
{ {
xtype: 'pveRealmSyncJobView', xtype: 'pveAuthView',
title: gettext('Realm Sync'), region: 'center',
groups: ['permissions'], border: false,
iconCls: 'fa fa-refresh', },
itemId: 'realmsyncjobs', {
xtype: 'pveRealmSyncJobView',
title: gettext('Sync Jobs'),
region: 'south',
collapsible: true,
animCollapse: false,
border: false,
height: '50%',
},
],
}, },
{ {
xtype: 'pveHAStatus', xtype: 'pveHAStatus',