diff --git a/client/src/components/Accounts/AccountsActionsBar.js b/client/src/components/Accounts/AccountsActionsBar.js
index b8cc91984..c93d23faa 100644
--- a/client/src/components/Accounts/AccountsActionsBar.js
+++ b/client/src/components/Accounts/AccountsActionsBar.js
@@ -34,6 +34,7 @@ function AccountsActionsBar({
const onClickNewAccount = () => { openDialog('account-form', {}); };
const accountsFields = getResourceFields('accounts');
+ const [filterCount, setFilterCount] = useState(0);
const viewsMenuItems = views.map((view) => {
return ();
@@ -43,6 +44,7 @@ function AccountsActionsBar({
const filterDropdown = FilterDropdown({
fields: accountsFields,
onFilterChange: (filterConditions) => {
+ setFilterCount(filterConditions.length || 0);
addAccountsTableQueries({
filter_roles: filterConditions || '',
});
@@ -81,9 +83,8 @@ function AccountsActionsBar({
} />
-
+ text={filterCount <= 0 ? 'Filter' : `${filterCount} filters applied`}
+ icon={ }/>
{hasSelectedRows && (
@@ -93,7 +94,6 @@ function AccountsActionsBar({
text='Archive'
/>
)}
-
{hasSelectedRows && (