[pve-devel] r5842 - in pve-manager/pve2/www/new: . panel

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Apr 20 13:35:02 CEST 2011


Author: dietmar
Date: 2011-04-20 13:35:02 +0200 (Wed, 20 Apr 2011)
New Revision: 5842

Added:
   pve-manager/pve2/www/new/panel/Datacenter.js
Modified:
   pve-manager/pve2/www/new/Makefile.am
   pve-manager/pve2/www/new/Workspace.js
   pve-manager/pve2/www/new/panel/StorageBrowser.js
Log:
add Datacenter.js stub


Modified: pve-manager/pve2/www/new/Makefile.am
===================================================================
--- pve-manager/pve2/www/new/Makefile.am	2011-04-20 11:17:46 UTC (rev 5841)
+++ pve-manager/pve2/www/new/Makefile.am	2011-04-20 11:35:02 UTC (rev 5842)
@@ -16,6 +16,7 @@
 	panel/NodeConfig.js				\
 	panel/KVMConfig.js				\
 	panel/StorageBrowser.js				\
+	panel/Datacenter.js				\
 	tree/ResourceTree.js				\
 	Workspace.js
 

Modified: pve-manager/pve2/www/new/Workspace.js
===================================================================
--- pve-manager/pve2/www/new/Workspace.js	2011-04-20 11:17:46 UTC (rev 5841)
+++ pve-manager/pve2/www/new/Workspace.js	2011-04-20 11:35:02 UTC (rev 5842)
@@ -96,6 +96,7 @@
 		    selectionchange: function(sm, selected) {
 			var comp;
 			var tlckup = {
+			    root: 'pveDatacenter',
 			    node: 'pveNodeConfig',
 			    qemu: 'pveKVMConfig',
 			    storage: 'pveStorageBrowser'
@@ -104,7 +105,8 @@
 			if (selected.length > 0) {
 			    var n = selected[0];
 			    comp = { 
-				xtype: tlckup[n.data.type] || 'pveConfigPanel',
+				xtype: tlckup[n.data.type || 'root'] || 
+				    'pveConfigPanel',
 				layout: 'fit',
 				showSearch: (n.data.id === 'root') ||
 				    Ext.isDefined(n.data.groupbyid),

Added: pve-manager/pve2/www/new/panel/Datacenter.js
===================================================================
--- pve-manager/pve2/www/new/panel/Datacenter.js	                        (rev 0)
+++ pve-manager/pve2/www/new/panel/Datacenter.js	2011-04-20 11:35:02 UTC (rev 5842)
@@ -0,0 +1,51 @@
+Ext.define('PVE.panel.Datacenter', {
+    extend: 'PVE.panel.ConfigPanel',
+    alias: 'widget.pveDatacenter',
+
+    initComponent: function() {
+        var me = this;
+
+	Ext.apply(me, {
+	    title: "Datacenter",
+	    items: [
+		{
+		    title: 'Summary',
+		    itemId: 'summary',
+		    html: 'summary '
+		},
+		{
+		    title: 'Storage',
+		    itemId: 'storage',
+		    html: 'storage '
+		},
+		{
+		    //xtype: 'pveUserView',
+		    title: 'Users',
+		    itemId: 'users'
+		},
+		{
+		    //xtype: 'pveGroupView',
+		    title: 'Groups',
+		    itemId: 'groups'
+		},
+		{
+		    //xtype: 'pveACLView',
+		    title: 'Permissions',
+		    itemId: 'permissions',
+		},
+		{
+		    //xtype: 'pveRoleView',
+		    title: 'Roles',
+		    itemId: 'roles'
+		},
+		{
+		    //xtype: 'pveAuthView',
+		    title: 'Authentication',
+		    itemId: 'domains'
+		}
+	    ]
+	});
+
+	me.callParent();
+   }
+});

Modified: pve-manager/pve2/www/new/panel/StorageBrowser.js
===================================================================
--- pve-manager/pve2/www/new/panel/StorageBrowser.js	2011-04-20 11:17:46 UTC (rev 5841)
+++ pve-manager/pve2/www/new/panel/StorageBrowser.js	2011-04-20 11:35:02 UTC (rev 5842)
@@ -13,8 +13,6 @@
 	if (!storeid) 
 	    throw "no storage ID specified";
 
-	var vmname = me.pveSelNode.data.name;
-	var descr = vmname ? "'" + vmname + "' " : '';
 	Ext.apply(me, {
 	    title: "Storage '" + storeid + "'" + "' on node '" + nodename + "'",
 	    items: [



More information about the pve-devel mailing list