mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-17 15:33:22 +00:00
fix #4534: add clear trigger for simpler clearing schedule
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9a741dd8ea
commit
63599af160
@ -49,6 +49,25 @@ Ext.define('PBS.form.CalendarEvent', {
|
|||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
triggers: {
|
||||||
|
clear: {
|
||||||
|
cls: 'pmx-clear-trigger',
|
||||||
|
weight: -1,
|
||||||
|
hidden: true,
|
||||||
|
handler: function() {
|
||||||
|
this.triggers.clear.setVisible(false);
|
||||||
|
this.setValue('');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
listeners: {
|
||||||
|
change: function(field, value) {
|
||||||
|
let canClear = (value ?? '') !== '';
|
||||||
|
field.triggers.clear.setVisible(canClear);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
store: {
|
store: {
|
||||||
type: 'calendarEventExamples',
|
type: 'calendarEventExamples',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user