[pve-devel] [PATCH manager 3/5] add 'edit' tool to notes panel

Dominik Csapak d.csapak at proxmox.com
Wed Jun 15 15:13:25 CEST 2016


this adds a tool to the note panel to edit it,
this is clearer than just double clicking the notes field
(also makes it easier on tablets)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/panel/NotesView.js | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/www/manager6/panel/NotesView.js b/www/manager6/panel/NotesView.js
index 54593d1..0ab174c 100644
--- a/www/manager6/panel/NotesView.js
+++ b/www/manager6/panel/NotesView.js
@@ -59,7 +59,18 @@ Ext.define('PVE.panel.NotesView', {
 			win.on('destroy', me.load, me);
 		    });
 		}
-	    }
+	    },
+	    tools: [{
+		type: 'gear',
+		handler: function() {
+		    var win = Ext.create('PVE.window.NotesEdit', {
+			pveSelNode: me.pveSelNode,
+			url: me.url
+		    });
+		    win.show();
+		    win.on('destroy', me.load, me);
+		}
+	    }]
 	});
 
 	me.callParent();
-- 
2.1.4





More information about the pve-devel mailing list