]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
notification ui: remove filter setting for targets
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 14 Nov 2023 12:59:45 +0000 (13:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 14:04:39 +0000 (15:04 +0100)
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
src/Makefile
src/form/NotificationFilterSelector.js [deleted file]
src/panel/GotifyEditPanel.js
src/panel/NotificationGroupEditPanel.js
src/panel/SendmailEditPanel.js

index 21fbe764eedbd7a7975cd31939a48557516f2494..85ecea4003fd6ebd08c5c09c86db892e87aab0eb 100644 (file)
@@ -44,7 +44,6 @@ JSSRC=                                        \
        form/RoleSelector.js            \
        form/DiskSelector.js            \
        form/MultiDiskSelector.js       \
-       form/NotificationFilterSelector.js      \
        form/TaskTypeSelector.js        \
        form/ACME.js                    \
        form/UserSelector.js            \
diff --git a/src/form/NotificationFilterSelector.js b/src/form/NotificationFilterSelector.js
deleted file mode 100644 (file)
index d2ab8be..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-Ext.define('Proxmox.form.NotificationFilterSelector', {
-    extend: 'Proxmox.form.ComboGrid',
-    alias: ['widget.pmxNotificationFilterSelector'],
-
-    // set default value to empty array, else it inits it with
-    // null and after the store load it is an empty array,
-    // triggering dirtychange
-    value: [],
-    valueField: 'name',
-    displayField: 'name',
-    deleteEmpty: true,
-    skipEmptyText: true,
-    allowBlank: true,
-    editable: false,
-    autoSelect: false,
-
-    listConfig: {
-       columns: [
-           {
-               header: gettext('Filter'),
-               dataIndex: 'name',
-               sortable: true,
-               hideable: false,
-               flex: 1,
-           },
-           {
-               header: gettext('Comment'),
-               dataIndex: 'comment',
-               sortable: true,
-               hideable: false,
-               flex: 2,
-           },
-       ],
-    },
-
-    initComponent: function() {
-       let me = this;
-
-       Ext.apply(me, {
-           store: {
-               fields: ['name', 'comment'],
-               proxy: {
-                   type: 'proxmox',
-                   url: `/api2/json/${me.baseUrl}/filters`,
-               },
-               sorters: [
-                   {
-                       property: 'name',
-                       direction: 'ASC',
-                   },
-               ],
-               autoLoad: true,
-           },
-       });
-
-       me.callParent();
-    },
-});
index 3ddcc4dd0626bfd0583af4b2daefecd5b9c10a0e..5d814e5afbda9748e20760ec63cc7c50ab102c50 100644 (file)
@@ -32,15 +32,6 @@ Ext.define('Proxmox.panel.GotifyEditPanel', {
                allowBlank: '{!isCreate}',
            },
        },
-       {
-           xtype: 'pmxNotificationFilterSelector',
-           name: 'filter',
-           fieldLabel: gettext('Filter'),
-           cbind: {
-               deleteEmpty: '{!isCreate}',
-               baseUrl: '{baseUrl}',
-           },
-       },
        {
            xtype: 'proxmoxtextfield',
            name: 'comment',
index aa768102480e91bcfb633fe1bcae52d625ca056a..910d15ac7bfeb42968e1086e26b39d1384c4b025 100644 (file)
@@ -21,15 +21,6 @@ Ext.define('Proxmox.panel.NotificationGroupEditPanel', {
            name: 'endpoint',
            allowBlank: false,
        },
-       {
-           xtype: 'pmxNotificationFilterSelector',
-           name: 'filter',
-           fieldLabel: gettext('Filter'),
-           cbind: {
-               deleteEmpty: '{!isCreate}',
-               baseUrl: '{baseUrl}',
-           },
-       },
        {
            xtype: 'proxmoxtextfield',
            name: 'comment',
index 253ee3e7a9c3e61bba6f7e28cee02912f43b29b8..c2470b797b7d402682a59f7b8305db8e51e4785e 100644 (file)
@@ -86,15 +86,6 @@ Ext.define('Proxmox.panel.SendmailEditPanel', {
                return this.up('pmxSendmailEditPanel').mailValidator();
            },
        },
-       {
-           xtype: 'pmxNotificationFilterSelector',
-           name: 'filter',
-           fieldLabel: gettext('Filter'),
-           cbind: {
-               deleteEmpty: '{!isCreate}',
-               baseUrl: '{baseUrl}',
-           },
-       },
        {
            xtype: 'proxmoxtextfield',
            name: 'comment',