[pve-devel] [PATCH proxmox-widget-toolkit] notification config view: add missing parameter for Ext.String.format

Lukas Wagner l.wagner at proxmox.com
Mon Sep 18 11:49:43 CEST 2023


Fixes: 7e4b51 ("notification config view: fix using gettext with parameter")
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 src/panel/NotificationConfigView.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/panel/NotificationConfigView.js b/src/panel/NotificationConfigView.js
index fe56102..ff9c512 100644
--- a/src/panel/NotificationConfigView.js
+++ b/src/panel/NotificationConfigView.js
@@ -101,7 +101,10 @@ Ext.define('Proxmox.panel.NotificationEndpointView', {
 			success: function(response, opt) {
 			    Ext.Msg.show({
 				title: gettext('Notification Target Test'),
-				message: Ext.String.format(gettext("Sent test notification to '{0}'.")),
+				message: Ext.String.format(
+				    gettext("Sent test notification to '{0}'."),
+				    target,
+				),
 				buttons: Ext.Msg.OK,
 				icon: Ext.Msg.INFO,
 			    });
-- 
2.39.2






More information about the pve-devel mailing list