package com.github.neunkasulle.chronocommand.view;

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.ValoTheme;

public class ErrorView extends VerticalLayout implements View {
    @Override
    public void enter(ViewChangeListener.ViewChangeEvent event) {
        Label error = new Label("Failed to find requested site: " + event.getViewName());
        error.setStyleName(ValoTheme.LABEL_H1);
        addComponent(error);
    }
}

@@ -127,16 +127,45 @@
 stener;%0A
+import com.vaadin.ui.Button;%0A
 import c
@@ -571,16 +571,268 @@
 (error);
+%0A%0A        Button link = new Button(%22Please go to the login page%22);%0A        link.setStyleName(ValoTheme.BUTTON_BORDERLESS_COLORED);%0A        addComponent(link);%0A        link.addClickListener(event1 -%3E getUI().getNavigator().navigateTo(MainUI.LOGINVIEW));
 %0A    %7D%0A%7D

Add button to error view