]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
followup: pull out 'Since/Until' to remove extra whitespace
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 May 2019 11:14:10 +0000 (13:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 May 2019 11:14:12 +0000 (13:14 +0200)
This is similar to how we did in panel/LogView but adds disabling
also to the label, not only the picker field, which is a bit nicer.

And no, it really does not seems like this can be done easier...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
panel/JournalView.js

index 79edaeb25929448df3995d6aa72171def5353bb9..5ccedf90be4f55453c097e7667e0b8710d207984 100644 (file)
@@ -286,9 +286,13 @@ Ext.define('Proxmox.panel.JournalView', {
                    }
                ]
            },
+           {
+               xtype: 'box',
+               bind: { disabled: '{livemode}' },
+               autoEl: { cn: gettext('Since') + ':' }
+           },
            {
                xtype: 'datefield',
-               fieldLabel: gettext('Since'),
                name: 'since_date',
                reference: 'since',
                format: 'Y-m-d',
@@ -298,9 +302,13 @@ Ext.define('Proxmox.panel.JournalView', {
                    maxValue: '{until}'
                }
            },
+           {
+               xtype: 'box',
+               bind: { disabled: '{livemode}' },
+               autoEl: { cn: gettext('Until') + ':' }
+           },
            {
                xtype: 'datefield',
-               fieldLabel: gettext('Until'),
                name: 'until_date',
                reference: 'until',
                format: 'Y-m-d',