prune panel: allow to pass emptyText for keep-last

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-23 18:17:53 +01:00
parent bdabc5633f
commit 9de5e64e53

View File

@ -6,6 +6,8 @@ Ext.define('Proxmox.panel.PruneInputPanel', {
// set on use for now
//onlineHelp: 'maintenance_pruning',
keepLastEmptyText: '',
cbindData: function() {
let me = this;
me.isCreate = !!me.isCreate;
@ -19,6 +21,7 @@ Ext.define('Proxmox.panel.PruneInputPanel', {
fieldLabel: gettext('keep-last'),
cbind: {
deleteEmpty: '{!isCreate}',
emptyText: '{keepLastEmptyText}',
},
},
{