Move 'Sessions' tab before 'Permissions' tab (#2725)

This commit is contained in:
Jon Koops 2022-06-01 11:13:28 +02:00 committed by GitHub
parent 49b0170952
commit a7719d1ace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -611,6 +611,14 @@ export default function ClientDetails() {
<ServiceAccount client={client} />
</Tab>
)}
<Tab
id="sessions"
data-testid="sessionsTab"
title={<TabTitleText>{t("sessions")}</TabTitleText>}
{...route("sessions")}
>
<ClientSessions client={client} />
</Tab>
{permissionsEnabled && (hasManageClients || client.access?.manage) && (
<Tab
id="permissions"
@ -629,14 +637,6 @@ export default function ClientDetails() {
>
<AdvancedTab save={save} client={client} />
</Tab>
<Tab
id="sessions"
data-testid="sessionsTab"
title={<TabTitleText>{t("sessions")}</TabTitleText>}
{...route("sessions")}
>
<ClientSessions client={client} />
</Tab>
</RoutableTabs>
</FormProvider>
</PageSection>