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 29
29
import java .util .Locale ;
30
30
31
31
import static java .util .Locale .GERMAN ;
32
+ import static org .woehlke .java .simpleworklist .domain .taskworkflow .TaskState .*;
32
33
33
34
/**
34
35
* Created by tw on 14.02.16.
@@ -107,8 +108,18 @@ public final List<Context> getContexts(){
107
108
108
109
@ ModelAttribute ("listTaskState" )
109
110
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 ){
112
123
listTaskState .add (taskState );
113
124
}
114
125
return listTaskState ;
Original file line number Diff line number Diff line change 91
91
console . error ( error ) ;
92
92
} ) ;
93
93
</ script >
94
- <!--/* Per-page placeholder for additional links */-->
94
+ <!--/* Per-page placeholder for additional links
95
95
<th:block th:replace="${scripts}" />
96
+ */-->
96
97
97
98
< script th:inline ="javascript ">
98
99
function allowDropOfTask ( ev ) {
You can’t perform that action at this time.
0 commit comments