mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +00:00
Small fix for last Commit
This commit is contained in:
parent
3a443d848a
commit
08c3322fbb
@ -2,7 +2,11 @@ package edu.kit.typicalc.view.content.errorcontent;
|
||||
|
||||
import com.vaadin.flow.component.Component;
|
||||
import com.vaadin.flow.component.dependency.CssImport;
|
||||
import com.vaadin.flow.component.html.*;
|
||||
import com.vaadin.flow.component.html.Div;
|
||||
import com.vaadin.flow.component.html.H3;
|
||||
import com.vaadin.flow.component.html.Paragraph;
|
||||
import com.vaadin.flow.component.html.Span;
|
||||
import com.vaadin.flow.component.html.Pre;
|
||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||
import com.vaadin.flow.i18n.LocaleChangeEvent;
|
||||
import com.vaadin.flow.i18n.LocaleChangeObserver;
|
||||
@ -52,7 +56,7 @@ public class ErrorView extends VerticalLayout implements LocaleChangeObserver {
|
||||
|
||||
switch (error) {
|
||||
case TOO_FEW_TOKENS:
|
||||
additionalInformation.add(new Label(getTranslation("root.tooFewTokensHelp")));
|
||||
additionalInformation.add(new Span(getTranslation("root.tooFewTokensHelp")));
|
||||
break;
|
||||
case UNEXPECTED_TOKEN:
|
||||
Optional<Token> cause = error.getCause();
|
||||
|
Loading…
Reference in New Issue
Block a user