[pve-devel] [PATCH manager v6 04/16] ui: dc: backup: allow to set custom job id in advanced settings

Lukas Wagner l.wagner at proxmox.com
Mon Apr 22 10:31:04 CEST 2024


This might be useful if somebody wants to match on the new
'backup-job' field in a notification match rule.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 www/manager6/Utils.js                       |  1 +
 www/manager6/panel/BackupAdvancedOptions.js | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 54aa8bac..5216198b 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -1963,6 +1963,7 @@ Ext.define('PVE.Utils', {
     singleton: true,
     constructor: function() {
 	var me = this;
+
 	Ext.apply(me, me.utilities);
 
 	Proxmox.Utils.override_task_descriptions({
diff --git a/www/manager6/panel/BackupAdvancedOptions.js b/www/manager6/panel/BackupAdvancedOptions.js
index 0ea585a8..144819e7 100644
--- a/www/manager6/panel/BackupAdvancedOptions.js
+++ b/www/manager6/panel/BackupAdvancedOptions.js
@@ -67,6 +67,17 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
     },
 
     column1: [
+	{
+	    xtype: 'pmxDisplayEditField',
+	    vtype: 'ConfigId',
+	    fieldLabel: gettext('Job ID'),
+	    emptyText: gettext('Autogenerate'),
+	    name: 'id',
+	    allowBlank: true,
+	    cbind: {
+		editable: '{isCreate}',
+	    },
+	},
 	{
 	    xtype: 'pveBandwidthField',
 	    name: 'bwlimit',
@@ -135,6 +146,10 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
     ],
 
     column2: [
+	{
+	    xtype: 'displayfield',
+	    value: gettext('Can be used in notification matchers to match this job.'),
+	},
 	{
 	    xtype: 'displayfield',
 	    value: gettext('Limit I/O bandwidth.'),
-- 
2.39.2





More information about the pve-devel mailing list