File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
java/org/woehlke/java/simpleworklist/application/framework
resources/templates/layout Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 2929import java .util .Locale ;
3030
3131import static java .util .Locale .GERMAN ;
32+ import static org .woehlke .java .simpleworklist .domain .taskworkflow .TaskState .*;
3233
3334/**
3435 * Created by tw on 14.02.16.
@@ -107,8 +108,18 @@ public final List<Context> getContexts(){
107108
108109 @ ModelAttribute ("listTaskState" )
109110 public final List <TaskState > getTaskStates (){
110- List <TaskState > listTaskState = new ArrayList <>(TaskState .values ().length );
111- for (TaskState taskState :TaskState .values ()){
111+ TaskState [] listTaskStateArray = {
112+ INBOX ,
113+ TODAY ,
114+ NEXT ,
115+ WAITING ,
116+ SCHEDULED ,
117+ SOMEDAY ,
118+ FOCUS ,
119+ COMPLETED
120+ };
121+ List <TaskState > listTaskState = new ArrayList <>(listTaskStateArray .length );
122+ for (TaskState taskState :listTaskStateArray ){
112123 listTaskState .add (taskState );
113124 }
114125 return listTaskState ;
Original file line number Diff line number Diff line change 9191 console . error ( error ) ;
9292 } ) ;
9393 </ script >
94- <!--/* Per-page placeholder for additional links */-->
94+ <!--/* Per-page placeholder for additional links
9595 <th:block th:replace="${scripts}" />
96+ */-->
9697
9798 < script th:inline ="javascript ">
9899 function allowDropOfTask ( ev ) {
You can’t perform that action at this time.
0 commit comments