]> git.proxmox.com Git - pmg-gui.git/commitdiff
add 'Match Archive Filename' to list of what objects
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 16 Apr 2020 08:59:41 +0000 (10:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 Apr 2020 13:02:32 +0000 (15:02 +0200)
and add an editor for it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/ObjectGroupConfiguration.js
js/Utils.js

index 390dbbda3ecdea46b5bf9f38812e7b3da0590fb0..1c1a81ce9d8b7c0804833b3f0c264ae7ca8cc603 100644 (file)
@@ -91,6 +91,6 @@ Ext.define('PMG.WhatConfiguration', {
     xtype: 'pmgWhatConfiguration',
 
     ogclass: 'what',
-    otype_list: [3000, 3001, 3002, 3003, 3004, 3005]
+    otype_list: [3000, 3001, 3002, 3003, 3004, 3005, 3006]
 });
 
index 686441be19b45fecd4663ced31da9a3fb8a6dd0a..b96010f6d008284f1a552aff8542cba08fd97616 100644 (file)
@@ -464,6 +464,31 @@ Ext.define('PMG.Utils', {
                }
            ]
        },
+       3006: {
+           onlineHelp: 'pmg_mailfilter_regex',
+           iconCls: 'fa fa-file-archive-o',
+           xtype: 'proxmoxWindowEdit',
+           subdir: 'archivefilenamefilter',
+           width: 400,
+           subject: gettext('Match Archive Filename'),
+           items: [
+               {
+                   xtype: 'textfield',
+                   name: 'filename',
+                   reference: 'filename',
+                   fieldLabel: gettext('Filename'),
+                   labelWidth: 150,
+                   allowBlank: false
+               },
+               {
+                   labelWidth: 150,
+                   fieldLabel: gettext('Test String'),
+                   wholeMatch: true,
+                   xtype: 'pmgRegexTester',
+                   regexFieldReference: 'filename'
+               }
+           ]
+       },
        4002: {
            onlineHelp: 'pmg_mailfilter_action',
            xtype: 'proxmoxWindowEdit',