[pve-devel] [PATCH pve-manager 2/2] Add class documentation header

Emmanuel Kasper e.kasper at proxmox.com
Tue Feb 16 16:14:14 CET 2016


---
 www/manager6/panel/ConfigPanel.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/manager6/panel/ConfigPanel.js b/www/manager6/panel/ConfigPanel.js
index bfa9211..94f8fbe 100644
--- a/www/manager6/panel/ConfigPanel.js
+++ b/www/manager6/panel/ConfigPanel.js
@@ -1,7 +1,13 @@
+/*
+ * Base class for all the multitab config panels
+ */
 Ext.define('PVE.panel.Config', {
     extend: 'Ext.panel.Panel',
     alias: 'widget.pvePanelConfig',
 
+    showSearch: true, // add a ressource grid with a search button as first tab
+    viewFilter: undefined, // a filter to pass to that ressource grid
+
     initComponent: function() {
         var me = this;
 
@@ -40,7 +46,6 @@ Ext.define('PVE.panel.Config', {
 	    padding: '0 0 5 0'
 	});
 
-	Ext.applyIf(me, { showSearch: true });
 
 	if (me.showSearch) {
 	    items.unshift({
-- 
2.1.4





More information about the pve-devel mailing list