sessions: added texts to messages.json

This commit is contained in:
Agnieszka Gancarczyk 2021-07-06 09:57:29 +01:00
parent a08bf78d05
commit 5979cf2c37
2 changed files with 14 additions and 7 deletions

View file

@ -33,7 +33,7 @@ export const SessionsSection = () => {
const adminClient = useAdminClient();
const [filterDropdownOpen, setFilterDropdownOpen] = useState(false);
const [filterType, setFilterType] = useState(
t("sessions:All session types").toString()
t("sessionsType.allSessions").toString()
);
const [key, setKey] = useState(0);
@ -91,28 +91,28 @@ export const SessionsSection = () => {
<SelectOption
key={0}
data-testid="all-sessions-option"
value={t("sessions:All session types")}
value={t("sessionsType.allSessions")}
isPlaceholder
/>
<SelectOption
key={1}
data-testid="regular-sso-option"
value={t("sessions:Regular SSO")}
value={t("sessionsType.regularSSO")}
/>
<SelectOption
key={2}
data-testid="offline-option"
value={t("sessions:Offline")}
value={t("sessionsType.offline")}
/>
<SelectOption
key={3}
data-testid="direct-grant-option"
value={t("sessions:Direct grant")}
value={t("sessionsType.directGrant")}
/>
<SelectOption
key={4}
data-testid="service-account-option"
value={t("sessions:Service account")}
value={t("sessionsType.serviceAccount")}
/>
</Select>
}

View file

@ -6,6 +6,13 @@
"subject": "Subject",
"lastAccess": "Last access",
"startDate": "Start date",
"accessedClients": "Accessed clients"
"accessedClients": "Accessed clients",
"sessionsType": {
"allSessions": "All session types",
"regularSSO": "Regular SSO",
"offline": "Offline",
"directGrant": "Direct grant",
"serviceAccount": "Service account"
}
}
}