]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/dc/Config.js
ui: realm: clarify that the sync jobs really are for the realm
[pve-manager.git] / www / manager6 / dc / Config.js
index 8c850a23c8aa54c86c9841c8f63f4a48321ce18f..f9f937a5550df9b65fc260a85e857f29011f12a0 100644 (file)
@@ -27,6 +27,12 @@ Ext.define('PVE.dc.Config', {
                iconCls: 'fa fa-book',
                itemId: 'summary',
            },
+           {
+               xtype: 'pmxNotesView',
+               title: gettext('Notes'),
+               iconCls: 'fa fa-sticky-note-o',
+               itemId: 'notes',
+           },
            {
                title: gettext('Cluster'),
                xtype: 'pveClusterAdministration',
@@ -95,6 +101,16 @@ Ext.define('PVE.dc.Config', {
            itemId: 'apitokens',
        });
 
+       me.items.push({
+           xtype: 'pmxTfaView',
+           title: gettext('Two Factor'),
+           groups: ['permissions'],
+           iconCls: 'fa fa-key',
+           itemId: 'tfa',
+           yubicoEnabled: true,
+           issuerName: `Proxmox VE - ${PVE.ClusterName || Proxmox.NodeName}`,
+       });
+
        if (caps.dc['Sys.Audit']) {
            me.items.push({
                xtype: 'pveGroupView',
@@ -118,11 +134,30 @@ Ext.define('PVE.dc.Config', {
                itemId: 'roles',
            },
            {
-               xtype: 'pveAuthView',
-               title: gettext('Authentication'),
+               title: gettext('Realms'),
+               xtype: 'panel',
+               layout: {
+                   type: 'border',
+               },
                groups: ['permissions'],
-               iconCls: 'fa fa-key',
+               iconCls: 'fa fa-address-book-o',
                itemId: 'domains',
+               items: [
+                   {
+                       xtype: 'pveAuthView',
+                       region: 'center',
+                       border: false,
+                   },
+                   {
+                       xtype: 'pveRealmSyncJobView',
+                       title: gettext('Realm Sync Jobs'),
+                       region: 'south',
+                       collapsible: true,
+                       animCollapse: false,
+                       border: false,
+                       height: '50%',
+                   },
+               ],
            },
            {
                xtype: 'pveHAStatus',
@@ -144,6 +179,8 @@ Ext.define('PVE.dc.Config', {
                xtype: 'pveFencingView',
                itemId: 'ha-fencing',
            });
+           // always show on initial load, will be hiddea later if the SDN API calls don't exist,
+           // else it won't be shown at first if the user initially loads with DC selected
            if (PVE.SDNInfo || PVE.SDNInfo === undefined) {
                me.items.push({
                    xtype: 'pveSDNStatus',
@@ -164,7 +201,7 @@ Ext.define('PVE.dc.Config', {
                {
                    xtype: 'pveSDNVnet',
                    groups: ['sdn'],
-                   title: gettext('Vnets'),
+                   title: 'VNets',
                    hidden: true,
                    iconCls: 'fa fa-network-wired',
                    itemId: 'sdnvnet',
@@ -175,7 +212,7 @@ Ext.define('PVE.dc.Config', {
                    title: gettext('Options'),
                    hidden: true,
                    iconCls: 'fa fa-gear',
-                   itemId: 'sdnoptions'
+                   itemId: 'sdnoptions',
                });
            }