Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
2020-12-11 21:21:35 +01:00

View File

@@ -24,15 +24,17 @@ import java.util.*;
@Controller
public class VotingController {
@Value("$(voting)")
private String voting;
@Value("$(motto)")
private String motto;
@Value("$(adding)")
private String adding;
private Boolean votingPhase = false, mottoPhase = false, addingPhase = false;
@Value("motto")
String motto;
@Value("adding")
String adding;
@Value("voting")
String voting;
private boolean votingPhase = false;
private boolean mottoPhase = false;
private boolean addingPhase = false;
private static final Logger LOGGER = LogManager.getLogger(VotingController.class);
private TableAction tableAction = new TableAction();
@@ -61,13 +63,15 @@ public class VotingController {
@PostConstruct
public void init() {
if (voting != null) {
votingPhase = true;
if (motto != null){
mottoPhase = true;
} else if (adding != null){
addingPhase = true;
} else if (motto != null) {
mottoPhase = true;
} else if (voting != null){
votingPhase = true;
}
// //TODO: TESTING REMOVE ON SHIPPING
// votingPhase = false;
// mottoPhase = true;