]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
prune panel: allow to pass emptyText for keep-last
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 17:17:53 +0000 (18:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 17:17:53 +0000 (18:17 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/PruneKeepPanel.js

index 139d511c7e9016daa3d555841af7f8b08e2a7abc..5642602e6bf26eac3a845fd5736ffeec7a1e0605 100644 (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}',
            },
        },
        {