]> git.proxmox.com Git - pmg-gui.git/commitdiff
fix tracking center with newer proxmox-widget-toolkit
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 26 Jun 2023 14:52:53 +0000 (16:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Jun 2023 11:39:05 +0000 (13:39 +0200)
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@proxmox.com>
js/MailTracker.js

index 52641a4ebd91888d1da2975ca85fc19525bb5e9f..1a170d85966ee629f6d60fe6e67fe0a04f7fdc79 100644 (file)
@@ -38,6 +38,8 @@ Ext.define('PMG.MailTrackerFilter', {
        },
     },
 
+    viewModel: {},
+
     getFilterParams: function() {
        let me = this;
        let param = {};