[pve-devel] [PATCH manager 3/5] Close #1268: Show migration start server and migration end server

Emmanuel Kasper e.kasper at proxmox.com
Thu Jul 6 14:01:29 CEST 2017


---
 www/manager6/window/Migrate.js    | 6 ++++--
 www/manager6/window/TaskViewer.js | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index dfc8da33..17ef8f67 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -25,9 +25,11 @@ Ext.define('PVE.window.Migrate', {
 	    },
 	    success: function(response, options) {
 		var upid = response.result.data;
+		var extraTitle = Ext.String.format(' ({0} ---> {1})', me.nodename, target);
 
-		var win = Ext.create('PVE.window.TaskViewer', { 
-		    upid: upid
+		var win = Ext.create('PVE.window.TaskViewer', {
+		    upid: upid,
+		    extraTitle: extraTitle
 		});
 		win.show();
 		me.close();
diff --git a/www/manager6/window/TaskViewer.js b/www/manager6/window/TaskViewer.js
index c27bffff..e8407919 100644
--- a/www/manager6/window/TaskViewer.js
+++ b/www/manager6/window/TaskViewer.js
@@ -84,6 +84,7 @@ Ext.define('PVE.window.TaskProgress', {
 Ext.define('PVE.window.TaskViewer', {
     extend: 'Ext.window.Window',
     alias: 'widget.pveTaskViewer',
+    extraTitle: '', // string to prepend after the generic task title
 
     initComponent: function() {
         var me = this;
@@ -212,7 +213,7 @@ Ext.define('PVE.window.TaskViewer', {
 	statstore.startUpdate();
 
 	Ext.apply(me, {
-	    title: "Task viewer: " + task.desc,
+	    title: "Task viewer: " + task.desc + me.extraTitle,
 	    width: 800,
 	    height: 400,
 	    layout: 'fit',
-- 
2.11.0





More information about the pve-devel mailing list