mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-23 07:56:47 +00:00
notification ui: remove filter setting for targets
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
78d21b71d2
commit
159fec230d
@ -44,7 +44,6 @@ JSSRC= \
|
|||||||
form/RoleSelector.js \
|
form/RoleSelector.js \
|
||||||
form/DiskSelector.js \
|
form/DiskSelector.js \
|
||||||
form/MultiDiskSelector.js \
|
form/MultiDiskSelector.js \
|
||||||
form/NotificationFilterSelector.js \
|
|
||||||
form/TaskTypeSelector.js \
|
form/TaskTypeSelector.js \
|
||||||
form/ACME.js \
|
form/ACME.js \
|
||||||
form/UserSelector.js \
|
form/UserSelector.js \
|
||||||
|
@ -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();
|
|
||||||
},
|
|
||||||
});
|
|
@ -32,15 +32,6 @@ Ext.define('Proxmox.panel.GotifyEditPanel', {
|
|||||||
allowBlank: '{!isCreate}',
|
allowBlank: '{!isCreate}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
xtype: 'pmxNotificationFilterSelector',
|
|
||||||
name: 'filter',
|
|
||||||
fieldLabel: gettext('Filter'),
|
|
||||||
cbind: {
|
|
||||||
deleteEmpty: '{!isCreate}',
|
|
||||||
baseUrl: '{baseUrl}',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: 'comment',
|
name: 'comment',
|
||||||
|
@ -21,15 +21,6 @@ Ext.define('Proxmox.panel.NotificationGroupEditPanel', {
|
|||||||
name: 'endpoint',
|
name: 'endpoint',
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
xtype: 'pmxNotificationFilterSelector',
|
|
||||||
name: 'filter',
|
|
||||||
fieldLabel: gettext('Filter'),
|
|
||||||
cbind: {
|
|
||||||
deleteEmpty: '{!isCreate}',
|
|
||||||
baseUrl: '{baseUrl}',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: 'comment',
|
name: 'comment',
|
||||||
|
@ -86,15 +86,6 @@ Ext.define('Proxmox.panel.SendmailEditPanel', {
|
|||||||
return this.up('pmxSendmailEditPanel').mailValidator();
|
return this.up('pmxSendmailEditPanel').mailValidator();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
xtype: 'pmxNotificationFilterSelector',
|
|
||||||
name: 'filter',
|
|
||||||
fieldLabel: gettext('Filter'),
|
|
||||||
cbind: {
|
|
||||||
deleteEmpty: '{!isCreate}',
|
|
||||||
baseUrl: '{baseUrl}',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: 'comment',
|
name: 'comment',
|
||||||
|
Loading…
Reference in New Issue
Block a user