mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
remove '-' from tab name when given term is empty
This commit is contained in:
parent
b282064f72
commit
0154e2ddf9
@ -108,8 +108,13 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
||||
|
||||
private void onTypeInferButtonClick(Consumer<Pair<String, Map<String, String>>> callback) {
|
||||
String currentInput = inputField.getOptionalValue().orElse(StringUtils.EMPTY);
|
||||
inputField.blur();
|
||||
|
||||
if ("".equals(currentInput)) {
|
||||
UI.getCurrent().getPage().setTitle(getTranslation("root.typicalc"));
|
||||
} else {
|
||||
UI.getCurrent().getPage().setTitle(getTranslation("root.typicalc") + " - " + currentInput);
|
||||
}
|
||||
callback.accept(Pair.of(currentInput, typeAssumptionsArea.getTypeAssumptions()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user