[pbs-devel] [PATCH proxmox-backup] ui: prune keep input: actually clear value on clear trigger click

Dominik Csapak d.csapak at proxmox.com
Wed Nov 27 09:41:15 CET 2024


instead of resetting to the originalValue. This makes it behave like
other similar fields (e.g. the combogrid).

Reported-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/datastore/Prune.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/datastore/Prune.js b/www/datastore/Prune.js
index 5752907e3..e0ff4f2dc 100644
--- a/www/datastore/Prune.js
+++ b/www/datastore/Prune.js
@@ -32,7 +32,7 @@ Ext.define('PBS.PruneKeepInput', {
 	    hidden: true,
 	    handler: function() {
 		this.triggers.clear.setVisible(false);
-		this.setValue(this.originalValue);
+		this.setValue("");
 	    },
 	},
     },
-- 
2.39.5





More information about the pbs-devel mailing list