From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 46E4A6A59E for ; Fri, 5 Mar 2021 09:46:04 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3857E21F91 for ; Fri, 5 Mar 2021 09:45:34 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 90F2421F87 for ; Fri, 5 Mar 2021 09:45:33 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 378FD4373C for ; Fri, 5 Mar 2021 09:45:33 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Fri, 5 Mar 2021 09:45:32 +0100 Message-Id: <20210305084532.19550-5-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210305084532.19550-1-d.csapak@proxmox.com> References: <20210305084532.19550-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.198 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup 4/4] ui: tape: add notify-user fields X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2021 08:46:04 -0000 to backup jobs, backups and restores Signed-off-by: Dominik Csapak --- www/tape/window/TapeBackup.js | 9 +++++++++ www/tape/window/TapeBackupJob.js | 9 +++++++++ www/tape/window/TapeRestore.js | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/www/tape/window/TapeBackup.js b/www/tape/window/TapeBackup.js index 30180146..ca9d3b5f 100644 --- a/www/tape/window/TapeBackup.js +++ b/www/tape/window/TapeBackup.js @@ -49,5 +49,14 @@ Ext.define('PBS.TapeManagement.TapeBackupWindow', { name: 'eject-media', fieldLabel: gettext('Eject Media'), }, + { + xtype: 'pbsUserSelector', + name: 'notify-user', + fieldLabel: gettext('Notify User'), + emptyText: 'root@pam', + value: null, + allowBlank: true, + renderer: Ext.String.htmlEncode, + }, ], }); diff --git a/www/tape/window/TapeBackupJob.js b/www/tape/window/TapeBackupJob.js index e7f89d69..b5e98572 100644 --- a/www/tape/window/TapeBackupJob.js +++ b/www/tape/window/TapeBackupJob.js @@ -35,6 +35,7 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', { if (values['export-media-set'] && !me.up('pbsTapeBackupJobEdit').isCreate) { Proxmox.Utils.assemble_field_data(values, { "delete": 'eject-media' }); } + PBS.Utils.delete_if_default(values, 'notify-user'); return values; }, column1: [ @@ -63,6 +64,14 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', { fieldLabel: gettext('Drive'), name: 'drive', }, + { + xtype: 'pbsUserSelector', + name: 'notify-user', + fieldLabel: gettext('Notify User'), + emptyText: 'root@pam', + allowBlank: true, + renderer: Ext.String.htmlEncode, + }, ], column2: [ diff --git a/www/tape/window/TapeRestore.js b/www/tape/window/TapeRestore.js index 9e0a5edb..8d26e81e 100644 --- a/www/tape/window/TapeRestore.js +++ b/www/tape/window/TapeRestore.js @@ -41,5 +41,14 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', { fieldLabel: gettext('Drive'), name: 'drive', }, + { + xtype: 'pbsUserSelector', + name: 'notify-user', + fieldLabel: gettext('Notify User'), + emptyText: gettext('Current User'), + value: null, + allowBlank: true, + renderer: Ext.String.htmlEncode, + }, ], }); -- 2.20.1