From 0b50c18ed0b365a886ece6072e0b87b41b139159 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 16 Dec 2021 11:19:49 +0100 Subject: [PATCH] ui: group filter: add hint that filter are additive Signed-off-by: Thomas Lamprecht --- www/form/GroupFilter.js | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/www/form/GroupFilter.js b/www/form/GroupFilter.js index d52858ca..2f6a2bac 100644 --- a/www/form/GroupFilter.js +++ b/www/form/GroupFilter.js @@ -332,10 +332,28 @@ Ext.define('PBS.form.GroupFilter', { }, }, { - xtype: 'button', - text: gettext('Add'), - iconCls: 'fa fa-plus-circle', - handler: 'addFilter', + xtype: 'container', + layout: { + type: 'hbox', + }, + items: [ + { + xtype: 'button', + text: gettext('Add'), + iconCls: 'fa fa-plus-circle', + handler: 'addFilter', + }, + { + xtype: 'box', + flex: 1, + }, + { + xtype: 'box', + style: 'margin: 3px 0px;', + html: `${gettext('Note')}: ` + + gettext('Filters are additive (OR-like)'), + }, + ], }, ],