package de.ivu.elect.presentation.stimmzettel;

import javax.annotation.Nullable;
import javax.enterprise.inject.Specializes;

import org.apache.commons.lang3.StringUtils;

import de.ivu.elect.jee.presentation.redirect.Redirect;

@Specializes
public class WasStimmzettelSearchView extends StimmzettelSearchView {
  private static final long serialVersionUID = 1L;


  @Override
  public boolean isBtnGoBackRendered() {
    return true;
  }

  @Nullable
  @Override
  @Redirect
  public String goBack() {
    String result = super.goBack();
    if (StringUtils.isBlank(result)){
      result = StimmzettelStatusuebersichtView.VIEW_ID;
    }
    return result;
  }
}
