Make base theme hidden for admin and account UIs. (#22672)
* Make base theme hidden for admin and account UIs. * Fix test.
This commit is contained in:
parent
de448920fc
commit
65d9099e86
2 changed files with 22 additions and 19 deletions
|
@ -126,7 +126,6 @@ describe("Realm settings tabs tests", () => {
|
||||||
|
|
||||||
realmSettingsPage.selectLoginThemeType("keycloak");
|
realmSettingsPage.selectLoginThemeType("keycloak");
|
||||||
realmSettingsPage.selectAccountThemeType("keycloak");
|
realmSettingsPage.selectAccountThemeType("keycloak");
|
||||||
realmSettingsPage.selectAdminThemeType("base");
|
|
||||||
realmSettingsPage.selectEmailThemeType("base");
|
realmSettingsPage.selectEmailThemeType("base");
|
||||||
|
|
||||||
realmSettingsPage.saveThemes();
|
realmSettingsPage.saveThemes();
|
||||||
|
|
|
@ -120,15 +120,17 @@ export const RealmSettingsThemesTab = ({
|
||||||
placeholderText="Select a theme"
|
placeholderText="Select a theme"
|
||||||
data-testid="select-account-theme"
|
data-testid="select-account-theme"
|
||||||
>
|
>
|
||||||
{themeTypes.account.map((theme, idx) => (
|
{themeTypes.account
|
||||||
<SelectOption
|
.filter((theme) => theme.name !== "base")
|
||||||
selected={theme.name === field.value}
|
.map((theme, idx) => (
|
||||||
key={`account-theme-${idx}`}
|
<SelectOption
|
||||||
value={theme.name}
|
selected={theme.name === field.value}
|
||||||
>
|
key={`account-theme-${idx}`}
|
||||||
{t(`${theme.name}`)}
|
value={theme.name}
|
||||||
</SelectOption>
|
>
|
||||||
))}
|
{t(`${theme.name}`)}
|
||||||
|
</SelectOption>
|
||||||
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
@ -162,15 +164,17 @@ export const RealmSettingsThemesTab = ({
|
||||||
placeholderText="Select a theme"
|
placeholderText="Select a theme"
|
||||||
data-testid="select-admin-theme"
|
data-testid="select-admin-theme"
|
||||||
>
|
>
|
||||||
{themeTypes.admin.map((theme, idx) => (
|
{themeTypes.admin
|
||||||
<SelectOption
|
.filter((theme) => theme.name !== "base")
|
||||||
selected={theme.name === field.value}
|
.map((theme, idx) => (
|
||||||
key={`admin-theme-${idx}`}
|
<SelectOption
|
||||||
value={theme.name}
|
selected={theme.name === field.value}
|
||||||
>
|
key={`admin-theme-${idx}`}
|
||||||
{t(`${theme.name}`)}
|
value={theme.name}
|
||||||
</SelectOption>
|
>
|
||||||
))}
|
{t(`${theme.name}`)}
|
||||||
|
</SelectOption>
|
||||||
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue