package de.ivu.elect.presentation.wahlvorschlag.action;

import javax.annotation.Nonnull;
import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import de.ivu.elect.business.wahlvorschlag.entity.Liste;

@Specializes
public class NlListeEditAction extends ListeEditAction {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient NlListeActionDisabled nlListeActionDisabled;

  @Override
  public boolean isDisabledInternal(@Nonnull Liste liste) {
    return nlListeActionDisabled.isDisabled(liste) || super.isDisabledInternal(liste);
  }
}
