mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Preserve language on refresh
This commit is contained in:
parent
6cea905dc4
commit
6fdfb45b47
@ -51,7 +51,7 @@ public class HelpDialog extends Dialog implements LocaleChangeObserver {
|
||||
languageSelect = new Select<>(Locale.GERMAN, Locale.ENGLISH);
|
||||
languageSelect.setTextRenderer(renderer);
|
||||
languageSelect.setValue(UI.getCurrent().getLocale());
|
||||
languageSelect.addValueChangeListener(event -> UI.getCurrent().setLocale(event.getValue()));
|
||||
languageSelect.addValueChangeListener(event -> UI.getCurrent().getSession().setLocale(event.getValue()));
|
||||
languageSelect.setId(LANGUAGE_SELECT_ID);
|
||||
headingLayout.add(heading, languageSelect);
|
||||
|
||||
|
@ -223,6 +223,7 @@ public class ScreenshotIT extends AbstractIT {
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
||||
controlPanelElement.previousStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
||||
controlPanelElement.firstStep();
|
||||
executor.waitForVaadin();
|
||||
|
Loading…
Reference in New Issue
Block a user