notification ui: remove filter setting for targets

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-11-14 13:59:45 +01:00 committed by Thomas Lamprecht
parent 78d21b71d2
commit 159fec230d
5 changed files with 0 additions and 86 deletions

View 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 \

View File

@ -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();
},
});

View 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',

View 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',

View 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',