From a93fcb893f81d0eb1e102b6b3356a3f58971fec3 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 3 Jul 2015 11:29:11 +0200 Subject: [PATCH] copy pool/Config.js from manager to manager5 --- www/manager5/pool/Config.js | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 www/manager5/pool/Config.js diff --git a/www/manager5/pool/Config.js b/www/manager5/pool/Config.js new file mode 100644 index 00000000..8683cca5 --- /dev/null +++ b/www/manager5/pool/Config.js @@ -0,0 +1,39 @@ +Ext.define('PVE.pool.Config', { + extend: 'PVE.panel.Config', + alias: 'widget.pvePoolConfig', + + initComponent: function() { + var me = this; + + var pool = me.pveSelNode.data.pool; + if (!pool) { + throw "no pool specified"; + } + + Ext.apply(me, { + title: Ext.String.format(gettext("Resource Pool") + ': ' + pool), + hstateid: 'pooltab', + items: [ + { + title: gettext('Summary'), + xtype: 'pvePoolSummary', + itemId: 'summary' + }, + { + title: gettext('Members'), + xtype: 'pvePoolMembers', + pool: pool, + itemId: 'members' + }, + { + xtype: 'pveACLView', + title: gettext('Permissions'), + itemId: 'permissions', + path: '/pool/' + pool + } + ] + }); + + me.callParent(); + } +});