From 84846fdc10048a59d8b5b1de2bca2f2e94d97b75 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Mon, 18 Sep 2023 10:20:26 +0200 Subject: [PATCH] ui: notification: remove unneeded gettext calls 'mail-to-root' is the name of the default notification target and should thus not be translated. Signed-off-by: Lukas Wagner --- www/manager6/dc/NotificationEvents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/dc/NotificationEvents.js b/www/manager6/dc/NotificationEvents.js index 21628204..18816290 100644 --- a/www/manager6/dc/NotificationEvents.js +++ b/www/manager6/dc/NotificationEvents.js @@ -40,7 +40,7 @@ Ext.define('PVE.dc.NotificationEventsTargetSelector', { editable: true, autoSelect: false, deleteEmpty: false, - emptyText: `${Proxmox.Utils.defaultText} (${gettext("mail-to-root")})`, + emptyText: `${Proxmox.Utils.defaultText} (mail-to-root)`, }); Ext.define('PVE.dc.NotificationEvents', { @@ -126,7 +126,7 @@ Ext.define('PVE.dc.NotificationEvents', { // Needed since the actual value is always stored in the 'notify' property let render_value = (store, target_key, mode_key, default_val) => { let value = store.getById('notify')?.get('value') ?? {}; - let target = value[target_key] ?? gettext('mail-to-root'); + let target = value[target_key] ?? 'mail-to-root'; let template; switch (value[mode_key]) {