[pve-devel] [PATCH manager v2 1/3] let NotesView load itself

Dominik Csapak d.csapak at proxmox.com
Fri May 25 10:31:54 CEST 2018


instead of needing to load from the outside, let NotesView handle the
loading itself

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/lxc/Summary.js     | 1 -
 www/manager6/panel/NotesView.js | 1 +
 www/manager6/qemu/Summary.js    | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/manager6/lxc/Summary.js b/www/manager6/lxc/Summary.js
index 47fb5b29..3eb0689f 100644
--- a/www/manager6/lxc/Summary.js
+++ b/www/manager6/lxc/Summary.js
@@ -131,7 +131,6 @@ Ext.define('PVE.lxc.Summary', {
 	});
 
 	me.callParent();
-	me.down('#notesview').load();
 	if (!template) {
 	    rrdstore.startUpdate();
 	    me.on('destroy', rrdstore.stopUpdate);
diff --git a/www/manager6/panel/NotesView.js b/www/manager6/panel/NotesView.js
index e3194a26..b420d8c8 100644
--- a/www/manager6/panel/NotesView.js
+++ b/www/manager6/panel/NotesView.js
@@ -74,5 +74,6 @@ Ext.define('PVE.panel.NotesView', {
 	});
 
 	me.callParent();
+	me.load();
     }
 });
diff --git a/www/manager6/qemu/Summary.js b/www/manager6/qemu/Summary.js
index 65787461..7810af03 100644
--- a/www/manager6/qemu/Summary.js
+++ b/www/manager6/qemu/Summary.js
@@ -131,7 +131,6 @@ Ext.define('PVE.qemu.Summary', {
 	});
 
 	me.callParent();
-	me.down('#notesview').load();
 	if (!template) {
 	    rrdstore.startUpdate();
 	    me.on('destroy', rrdstore.stopUpdate);
-- 
2.11.0





More information about the pve-devel mailing list