]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: utils: add overrides for known notification metadata fields/values
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 23 Apr 2024 11:52:18 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 21:14:46 +0000 (23:14 +0200)
This mechanism allows having nice, translatable notification event
types and fields.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/Utils.js

index 0c1f78b681e237b58823b14c403156b08dce87be..14888c7545a1cea987b7c996f2446428dc826a2b 100644 (file)
@@ -435,6 +435,23 @@ Ext.define('PBS.Utils', {
            zfscreate: [gettext('ZFS Storage'), gettext('Create')],
        });
 
+       Proxmox.Utils.overrideNotificationFieldName({
+           'datastore': gettext('Datastore'),
+           'job-id': gettext('Job ID'),
+           'media-pool': gettext('Media Pool'),
+       });
+
+       Proxmox.Utils.overrideNotificationFieldValue({
+           'acme': gettext('ACME certificate renewal'),
+           'gc': gettext('Garbage collection'),
+           'package-updates': gettext('Package updates are available'),
+           'prune': gettext('Prune job'),
+           'sync': gettext('Sync job'),
+           'tape-backup': gettext('Tape backup notifications'),
+           'tape-load': gettext('Tape loading request'),
+           'verify': gettext('Verification job'),
+       });
+
        Proxmox.Schema.overrideAuthDomains({
            pbs: {
                name: 'Proxmox Backup authentication server',