]> 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 ec099494612d649eafe3bf6235eff125ae7c2593..f9f937a5550df9b65fc260a85e857f29011f12a0 100644 (file)
@@ -17,7 +17,7 @@ Ext.define('PVE.dc.Config', {
 
        Ext.apply(me, {
            title: gettext("Datacenter"),
-           hstateid: 'dctab'
+           hstateid: 'dctab',
        });
 
        if (caps.dc['Sys.Audit']) {
@@ -25,25 +25,31 @@ Ext.define('PVE.dc.Config', {
                title: gettext('Summary'),
                xtype: 'pveDcSummary',
                iconCls: 'fa fa-book',
-               itemId: 'summary'
+               itemId: 'summary',
+           },
+           {
+               xtype: 'pmxNotesView',
+               title: gettext('Notes'),
+               iconCls: 'fa fa-sticky-note-o',
+               itemId: 'notes',
            },
            {
                title: gettext('Cluster'),
                xtype: 'pveClusterAdministration',
                iconCls: 'fa fa-server',
-               itemId: 'cluster'
+               itemId: 'cluster',
            },
            {
                title: 'Ceph',
                itemId: 'ceph',
                iconCls: 'fa fa-ceph',
-               xtype: 'pveNodeCephStatus'
+               xtype: 'pveNodeCephStatus',
            },
            {
                xtype: 'pveDcOptionView',
                title: gettext('Options'),
                iconCls: 'fa fa-gear',
-               itemId: 'options'
+               itemId: 'options',
            });
        }
 
@@ -52,7 +58,7 @@ Ext.define('PVE.dc.Config', {
                xtype: 'pveStorageView',
                title: gettext('Storage'),
                iconCls: 'fa fa-database',
-               itemId: 'storage'
+               itemId: 'storage',
            });
        }
 
@@ -62,20 +68,20 @@ Ext.define('PVE.dc.Config', {
                xtype: 'pveDcBackupView',
                iconCls: 'fa fa-floppy-o',
                title: gettext('Backup'),
-               itemId: 'backup'
+               itemId: 'backup',
            },
            {
                xtype: 'pveReplicaView',
                iconCls: 'fa fa-retweet',
                title: gettext('Replication'),
-               itemId: 'replication'
+               itemId: 'replication',
            },
            {
                xtype: 'pveACLView',
                title: gettext('Permissions'),
                iconCls: 'fa fa-unlock',
                itemId: 'permissions',
-               expandedOnInit: true
+               expandedOnInit: true,
            });
        }
 
@@ -84,7 +90,7 @@ Ext.define('PVE.dc.Config', {
            groups: ['permissions'],
            iconCls: 'fa fa-user',
            title: gettext('Users'),
-           itemId: 'users'
+           itemId: 'users',
        });
 
        me.items.push({
@@ -92,7 +98,17 @@ Ext.define('PVE.dc.Config', {
            groups: ['permissions'],
            iconCls: 'fa fa-user-o',
            title: gettext('API Tokens'),
-           itemId: 'apitokens'
+           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']) {
@@ -101,49 +117,70 @@ Ext.define('PVE.dc.Config', {
                title: gettext('Groups'),
                iconCls: 'fa fa-users',
                groups: ['permissions'],
-               itemId: 'groups'
+               itemId: 'groups',
            },
            {
                xtype: 'pvePoolView',
                title: gettext('Pools'),
                iconCls: 'fa fa-tags',
                groups: ['permissions'],
-               itemId: 'pools'
+               itemId: 'pools',
            },
            {
                xtype: 'pveRoleView',
                title: gettext('Roles'),
                iconCls: 'fa fa-male',
                groups: ['permissions'],
-               itemId: 'roles'
+               itemId: 'roles',
            },
            {
-               xtype: 'pveAuthView',
-               title: gettext('Authentication'),
+               title: gettext('Realms'),
+               xtype: 'panel',
+               layout: {
+                   type: 'border',
+               },
                groups: ['permissions'],
-               iconCls: 'fa fa-key',
-               itemId: 'domains'
+               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',
                title: 'HA',
                iconCls: 'fa fa-heartbeat',
-               itemId: 'ha'
+               itemId: 'ha',
            },
            {
                title: gettext('Groups'),
                groups: ['ha'],
                xtype: 'pveHAGroupsView',
                iconCls: 'fa fa-object-group',
-               itemId: 'ha-groups'
+               itemId: 'ha-groups',
            },
            {
                title: gettext('Fencing'),
                groups: ['ha'],
                iconCls: 'fa fa-bolt',
                xtype: 'pveFencingView',
-               itemId: 'ha-fencing'
+               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',
@@ -151,15 +188,7 @@ Ext.define('PVE.dc.Config', {
                    iconCls: 'fa fa-sdn',
                    hidden: true,
                    itemId: 'sdn',
-                   expandedOnInit: true
-               },
-               {
-                   xtype: 'pveSDNControllerView',
-                   groups: ['sdn'],
-                   title: gettext('Controllers'),
-                   hidden: true,
-                   iconCls: 'fa fa-crosshairs',
-                   itemId: 'sdncontroller'
+                   expandedOnInit: true,
                },
                {
                    xtype: 'pveSDNZoneView',
@@ -167,17 +196,35 @@ Ext.define('PVE.dc.Config', {
                    title: gettext('Zones'),
                    hidden: true,
                    iconCls: 'fa fa-th',
-                   itemId: 'sdnzone'
+                   itemId: 'sdnzone',
                },
                {
-                   xtype: 'pveSDNVnetView',
+                   xtype: 'pveSDNVnet',
                    groups: ['sdn'],
-                   title: gettext('Vnets'),
+                   title: 'VNets',
                    hidden: true,
                    iconCls: 'fa fa-network-wired',
-                   itemId: 'sdnvnet'
+                   itemId: 'sdnvnet',
+               },
+               {
+                   xtype: 'pveSDNOptions',
+                   groups: ['sdn'],
+                   title: gettext('Options'),
+                   hidden: true,
+                   iconCls: 'fa fa-gear',
+                   itemId: 'sdnoptions',
                });
            }
+
+           if (Proxmox.UserName === 'root@pam') {
+               me.items.push({
+                   xtype: 'pveACMEClusterView',
+                   title: 'ACME',
+                   iconCls: 'fa fa-certificate',
+                   itemId: 'acme',
+               });
+           }
+
            me.items.push({
                xtype: 'pveFirewallRules',
                title: gettext('Firewall'),
@@ -185,7 +232,7 @@ Ext.define('PVE.dc.Config', {
                base_url: '/cluster/firewall/rules',
                list_refs_url: '/cluster/firewall/refs',
                iconCls: 'fa fa-shield',
-               itemId: 'firewall'
+               itemId: 'firewall',
            },
            {
                xtype: 'pveFirewallOptions',
@@ -195,14 +242,14 @@ Ext.define('PVE.dc.Config', {
                base_url: '/cluster/firewall/options',
                onlineHelp: 'pve_firewall_cluster_wide_setup',
                fwtype: 'dc',
-               itemId: 'firewall-options'
+               itemId: 'firewall-options',
            },
            {
                xtype: 'pveSecurityGroups',
                title: gettext('Security Group'),
                groups: ['firewall'],
                iconCls: 'fa fa-group',
-               itemId: 'firewall-sg'
+               itemId: 'firewall-sg',
            },
            {
                xtype: 'pveFirewallAliases',
@@ -210,7 +257,7 @@ Ext.define('PVE.dc.Config', {
                groups: ['firewall'],
                iconCls: 'fa fa-external-link',
                base_url: '/cluster/firewall/aliases',
-               itemId: 'firewall-aliases'
+               itemId: 'firewall-aliases',
            },
            {
                xtype: 'pveIPSet',
@@ -219,16 +266,23 @@ Ext.define('PVE.dc.Config', {
                iconCls: 'fa fa-list-ol',
                base_url: '/cluster/firewall/ipset',
                list_refs_url: '/cluster/firewall/refs',
-               itemId: 'firewall-ipset'
+               itemId: 'firewall-ipset',
+           },
+           {
+               xtype: 'pveMetricServerView',
+               title: gettext('Metric Server'),
+               iconCls: 'fa fa-bar-chart',
+               itemId: 'metricservers',
+               onlineHelp: 'external_metric_server',
            },
            {
                xtype: 'pveDcSupport',
                title: gettext('Support'),
                itemId: 'support',
-               iconCls: 'fa fa-comments-o'
+               iconCls: 'fa fa-comments-o',
            });
        }
 
        me.callParent();
-   }
+   },
 });