[pmg-devel] [PATCH pmg-gui] fix tracking center with newer proxmox-widget-toolkit

Dominik Csapak d.csapak at proxmox.com
Mon Jun 26 16:52:53 CEST 2023


newer widget-toolkit versions did change the DateTimeField a bit, and
now breaks when there is no viewModel anywhere, so add one as a stopgap
fix for now in the tracking center.

the real fix would have to be in DateTimeField itself, probably checking
if there is a bind.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
I just did not have time today to look into the code in
widget-toolkit. if someone finds an easy solution there go ahead, but
this should be fine as a stopgap...

 js/MailTracker.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/js/MailTracker.js b/js/MailTracker.js
index 52641a4..1a170d8 100644
--- a/js/MailTracker.js
+++ b/js/MailTracker.js
@@ -38,6 +38,8 @@ Ext.define('PMG.MailTrackerFilter', {
 	},
     },
 
+    viewModel: {},
+
     getFilterParams: function() {
 	let me = this;
 	let param = {};
-- 
2.30.2





More information about the pmg-devel mailing list