[pve-devel] [PATCH widget-toolkit] fix #3589: show device name in title for SMART values window

Dominik Csapak d.csapak at proxmox.com
Fri Oct 15 13:33:55 CEST 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/window/DiskSmart.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/window/DiskSmart.js b/src/window/DiskSmart.js
index 6d35ea1..f11209e 100644
--- a/src/window/DiskSmart.js
+++ b/src/window/DiskSmart.js
@@ -12,7 +12,6 @@ Ext.define('Proxmox.window.DiskSmart', {
     minWidth: 400,
     minHeight: 300,
     bodyPadding: 5,
-    title: gettext('S.M.A.R.T. Values'),
 
     items: [
 	{
@@ -113,6 +112,8 @@ Ext.define('Proxmox.window.DiskSmart', {
 	    throw "no device specified";
 	}
 
+	me.title = gettext('S.M.A.R.T. Values') + ` (${dev})`;
+
 	me.store = Ext.create('Ext.data.Store', {
 	    model: 'pmx-disk-smart',
 	    proxy: {
-- 
2.30.2






More information about the pve-devel mailing list