Skip to content

Commit 0619897

Browse files
authored
Hide unverified tab when external (#6060)
1 parent 7d3540c commit 0619897

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/javascript/components/admin/manage_users/ManageUsers.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,12 @@ export default function ManageUsers() {
100100
<Tab eventKey="active" title={t('admin.manage_users.active')}>
101101
<VerifiedUsers searchInput={searchInput} />
102102
</Tab>
103-
<Tab eventKey="unverified" title={t('admin.manage_users.unverified')}>
104-
<UnverifiedUsers searchInput={searchInput} />
105-
</Tab>
103+
{(!envAPI.isLoading && !envAPI.data?.EXTERNAL_AUTH)
104+
&& (
105+
<Tab eventKey="unverified" title={t('admin.manage_users.unverified')}>
106+
<UnverifiedUsers searchInput={searchInput} />
107+
</Tab>
108+
)}
106109
{registrationMethod === 'approval'
107110
&& (
108111
<Tab eventKey="pending" title={t('admin.manage_users.pending')}>

0 commit comments

Comments
 (0)