]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: notification: remove unneeded gettext calls
authorLukas Wagner <l.wagner@proxmox.com>
Mon, 18 Sep 2023 08:20:26 +0000 (10:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Sep 2023 10:06:52 +0000 (12:06 +0200)
'mail-to-root' is the name of the default notification target and
should thus not be translated.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
www/manager6/dc/NotificationEvents.js

index 216282047f9a83be4d678a7931c963d1dfd1e310..1881629083c947ae46efec5c1a0164bc22cfd486 100644 (file)
@@ -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]) {