From 232c96e0f113336f4ad3553101e7d65405b9eea8 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 10 Mar 2016 11:47:01 +0100 Subject: [PATCH] ext6migrate: add Tabs to Storages Signed-off-by: Dominik Csapak --- 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 c78dee51..d58cce3c 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 });