[pve-devel] [PATCH manager 09/10] ext6migrate: add Tabs to Storages

Dominik Csapak d.csapak at proxmox.com
Thu Mar 10 11:47:01 CET 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/storage/Browser.js | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index c78dee5..d58cce3 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -15,18 +15,17 @@ Ext.define('PVE.storage.Browser', {
 	    throw "no storage ID specified";
 	}
 
-	var caps = Ext.state.Manager.get('GuiCap');
 
 	me.items = [
 	    {
-		title: gettext('SummaryTODO'),
-		xtype: 'panel',
-//		title: gettext('Summary'),
-//		xtype: 'pveStorageSummary',
+		title: gettext('Summary'),
+		xtype: 'pveStorageSummary',
 		itemId: 'summary'
 	    }
 	];
 
+	var caps = Ext.state.Manager.get('GuiCap');
+
 	Ext.apply(me, {
 	    title: Ext.String.format(gettext("Storage {0} on node {1}"), 
 				     "'" + storeid + "'", "'" + nodename + "'"),
@@ -35,21 +34,16 @@ Ext.define('PVE.storage.Browser', {
 
 	if (caps.storage['Datastore.Allocate']) {
 	    me.items.push({
-		xtype: 'gridpanel',
-		title: gettext('ContentTODO'),
-//		xtype: 'pveStorageContentView',
-//		title: gettext('Content'),
+		xtype: 'pveStorageContentView',
+		title: gettext('Content'),
 		itemId: 'content'
 	    });
 	}
 
 	if (caps.storage['Permissions.Modify']) {
 	    me.items.push({
-		xtype: 'window',
-		title: gettext('PermissionsTODO'),
-//		xtype: 'pveACLView',
-//		title: gettext('Permissions'),
-
+		xtype: 'pveACLView',
+		title: gettext('Permissions'),
 		itemId: 'permissions',
 		path: '/storage/' + storeid
 	    });
-- 
2.1.4





More information about the pve-devel mailing list