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: {
activate: () => me.reload(),
itemdblclick: () => me.run_editor(),
},
});
me.callParent();
me.reload();
},
});

View 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',