[pbs-devel] [PATCH proxmox-backup v2 33/43] ui: utils: add overrides for known notification metadata fields/values
Lukas Wagner
l.wagner at proxmox.com
Wed Apr 17 16:35:04 CEST 2024
This mechanism allows having nice, translatable notification event
types and fields.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
Tested-by: Gabriel Goller <g.goller at proxmox.com>
Reviewed-by: Gabriel Goller <g.goller at proxmox.com>
---
www/Utils.js | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/www/Utils.js b/www/Utils.js
index 5357949b..ae8d8ed3 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -429,6 +429,26 @@ Ext.define('PBS.Utils', {
zfscreate: [gettext('ZFS Storage'), gettext('Create')],
});
+ Proxmox.Utils.overrideNotificationFieldName({
+ 'datastore': gettext('Datastore'),
+ 'tape-job': gettext('Tape Backup Job ID'),
+ 'verification-job': gettext('Verification Job ID'),
+ 'prune-job': gettext('Prune Job ID'),
+ 'sync-job': gettext('Sync 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',
--
2.39.2
More information about the pbs-devel
mailing list