From 4c8fcdd7afcad0759d81afb0ace680c75e5d3abc Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 13 Jun 2023 10:44:00 +0200 Subject: [PATCH] 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 --- www/manager6/dc/AuthView.js | 2 +- www/manager6/dc/Config.js | 28 ++++++++++++++++++++-------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/www/manager6/dc/AuthView.js b/www/manager6/dc/AuthView.js index 60332c3f..229c944b 100644 --- a/www/manager6/dc/AuthView.js +++ b/www/manager6/dc/AuthView.js @@ -130,11 +130,11 @@ Ext.define('PVE.dc.AuthView', { }, ], listeners: { - activate: () => me.reload(), itemdblclick: () => me.run_editor(), }, }); me.callParent(); + me.reload(); }, }); diff --git a/www/manager6/dc/Config.js b/www/manager6/dc/Config.js index bbe56125..1223ec92 100644 --- a/www/manager6/dc/Config.js +++ b/www/manager6/dc/Config.js @@ -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', -- 2.39.5