mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-01 20:52:51 -05:00
* Make base theme hidden for admin and account UIs. * Fix test.
This commit is contained in:
@@ -126,7 +126,6 @@ describe("Realm settings tabs tests", () => {
|
||||
|
||||
realmSettingsPage.selectLoginThemeType("keycloak");
|
||||
realmSettingsPage.selectAccountThemeType("keycloak");
|
||||
realmSettingsPage.selectAdminThemeType("base");
|
||||
realmSettingsPage.selectEmailThemeType("base");
|
||||
|
||||
realmSettingsPage.saveThemes();
|
||||
|
||||
@@ -120,15 +120,17 @@ export const RealmSettingsThemesTab = ({
|
||||
placeholderText="Select a theme"
|
||||
data-testid="select-account-theme"
|
||||
>
|
||||
{themeTypes.account.map((theme, idx) => (
|
||||
<SelectOption
|
||||
selected={theme.name === field.value}
|
||||
key={`account-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
</SelectOption>
|
||||
))}
|
||||
{themeTypes.account
|
||||
.filter((theme) => theme.name !== "base")
|
||||
.map((theme, idx) => (
|
||||
<SelectOption
|
||||
selected={theme.name === field.value}
|
||||
key={`account-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</Select>
|
||||
)}
|
||||
/>
|
||||
@@ -162,15 +164,17 @@ export const RealmSettingsThemesTab = ({
|
||||
placeholderText="Select a theme"
|
||||
data-testid="select-admin-theme"
|
||||
>
|
||||
{themeTypes.admin.map((theme, idx) => (
|
||||
<SelectOption
|
||||
selected={theme.name === field.value}
|
||||
key={`admin-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
</SelectOption>
|
||||
))}
|
||||
{themeTypes.admin
|
||||
.filter((theme) => theme.name !== "base")
|
||||
.map((theme, idx) => (
|
||||
<SelectOption
|
||||
selected={theme.name === field.value}
|
||||
key={`admin-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</Select>
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user