From 8ad475a960be327ebe4dc99ca3af295960798a69 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 1 Dec 2021 18:43:11 +0000 Subject: [PATCH] UX: Update HTML following core change (#6) --- .../templates/users-as-card-directory.hbs | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/javascripts/discourse/templates/users-as-card-directory.hbs b/javascripts/discourse/templates/users-as-card-directory.hbs index 8f02367..dcc512b 100644 --- a/javascripts/discourse/templates/users-as-card-directory.hbs +++ b/javascripts/discourse/templates/users-as-card-directory.hbs @@ -13,27 +13,29 @@ {{/if}} -
- +
+ {{input value=(readonly nameInput) input=(action "onUsernameFilterChanged" value="target.value") placeholderKey="directory.filter_name" class="filter-name no-blur" }} - {{combo-box - class="directory-group-selector" - value=group - content=groupOptions - onChange=(action groupChanged) - options=(hash - none="directory.group.all" - ) - }} + {{#if showGroupFilter}} + {{combo-box + class="directory-group-selector" + value=group + content=groupOptions + onChange=(action groupChanged) + options=(hash + none="directory.group.all" + ) + }} + {{/if}} {{#if currentUser.staff}} {{d-button icon="wrench"