From cd82be49113077f2dcb1abd86aaf40d4f6c9721f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 15 May 2019 13:14:10 +0200 Subject: [PATCH] followup: pull out 'Since/Until' to remove extra whitespace 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 --- panel/JournalView.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/panel/JournalView.js b/panel/JournalView.js index 79edaeb..5ccedf9 100644 --- a/panel/JournalView.js +++ b/panel/JournalView.js @@ -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',