From 3df9f143ed9a4629b3059a4bc7952ea1be43097a Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Wed, 2 Feb 2022 19:20:58 -0600 Subject: [PATCH] handle searchable when disabling email support --- app/templates/accounts/index.html.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/accounts/index.html.j2 b/app/templates/accounts/index.html.j2 index 73d596f..8d60c8e 100644 --- a/app/templates/accounts/index.html.j2 +++ b/app/templates/accounts/index.html.j2 @@ -41,7 +41,11 @@ "serverSide": true, "ajax": "{{ url_for('accounts.get') }}", "columnDefs": [ - { "searchable": false, "targets": [0,7] }, + {% if config.USER_ENABLE_EMAIL %} + { "searchable": false, "targets": [0,7] }, + {% else %} + { "searchable": false, "targets": [0,6] }, + {% endif %} { "orderable": false, "targets": [0] } ] });