From 9de5e64e53c387607fc42564c83b0caacad94962 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 23 Nov 2020 18:17:53 +0100 Subject: [PATCH] prune panel: allow to pass emptyText for keep-last Signed-off-by: Thomas Lamprecht --- src/panel/PruneKeepPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panel/PruneKeepPanel.js b/src/panel/PruneKeepPanel.js index 139d511..5642602 100644 --- a/src/panel/PruneKeepPanel.js +++ b/src/panel/PruneKeepPanel.js @@ -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}', }, }, { -- 2.39.2