mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 07:06:14 +00:00
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 <l.wagner@proxmox.com>
This commit is contained in:
parent
3dff70eb7e
commit
84846fdc10
@ -40,7 +40,7 @@ Ext.define('PVE.dc.NotificationEventsTargetSelector', {
|
|||||||
editable: true,
|
editable: true,
|
||||||
autoSelect: false,
|
autoSelect: false,
|
||||||
deleteEmpty: false,
|
deleteEmpty: false,
|
||||||
emptyText: `${Proxmox.Utils.defaultText} (${gettext("mail-to-root")})`,
|
emptyText: `${Proxmox.Utils.defaultText} (mail-to-root)`,
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.define('PVE.dc.NotificationEvents', {
|
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
|
// Needed since the actual value is always stored in the 'notify' property
|
||||||
let render_value = (store, target_key, mode_key, default_val) => {
|
let render_value = (store, target_key, mode_key, default_val) => {
|
||||||
let value = store.getById('notify')?.get('value') ?? {};
|
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;
|
let template;
|
||||||
|
|
||||||
switch (value[mode_key]) {
|
switch (value[mode_key]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user