]> git.proxmox.com Git - pve-manager.git/commitdiff
copy pool/Config.js from manager to manager5
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
www/manager5/pool/Config.js [new file with mode: 0644]

diff --git a/www/manager5/pool/Config.js b/www/manager5/pool/Config.js
new file mode 100644 (file)
index 0000000..8683cca
--- /dev/null
@@ -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();
+   }
+});