[pve-devel] [PATCH widget-toolkit 1/2] taskviewer: port over extraTite config parameter
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Dec 6 18:39:52 CET 2017
commit acc9bf4752972ffd79af1c78510fcce24c2db959 (Close #1268: Show
migration start server and migration end server) introduced the
possibility to display additional information in the TaskViewer
window title. This change happened after the widget toolkit formed
and seems reasonable to have here, thus port it over.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
window/TaskViewer.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/window/TaskViewer.js b/window/TaskViewer.js
index 189268b..c6bb370 100644
--- a/window/TaskViewer.js
+++ b/window/TaskViewer.js
@@ -85,6 +85,8 @@ Ext.define('Proxmox.window.TaskViewer', {
extend: 'Ext.window.Window',
alias: 'widget.proxmoxTaskViewer',
+ extraTitle: '', // string to prepend after the generic task title
+
initComponent: function() {
var me = this;
@@ -202,7 +204,7 @@ Ext.define('Proxmox.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