]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
notification config view: fix using gettext with parameter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 13 Sep 2023 16:17:07 +0000 (18:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 13 Sep 2023 16:17:07 +0000 (18:17 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/NotificationConfigView.js

index d7bd076eb2d0fabe9379012ae222c3d71149c6f4..fe56102e734212e2b1bb713c874cc1155b7d6157 100644 (file)
@@ -101,7 +101,7 @@ Ext.define('Proxmox.panel.NotificationEndpointView', {
                        success: function(response, opt) {
                            Ext.Msg.show({
                                title: gettext('Notification Target Test'),
-                               message: gettext(`Sent test notification to '${target}'.`),
+                               message: Ext.String.format(gettext("Sent test notification to '{0}'.")),
                                buttons: Ext.Msg.OK,
                                icon: Ext.Msg.INFO,
                            });