@@ -25,11 +25,11 @@ type UserAction =
25
25
| BoundaryUserAction
26
26
| CalledAfterUserAction
27
27
| ConstantUserAction
28
+ | DescriptionUserAction
28
29
| GroupUserAction
29
30
| EnumUserAction
30
31
| RenameUserAction
31
- | OptionalUserAction
32
- | DescriptionUserAction ;
32
+ | OptionalUserAction ;
33
33
34
34
const NoUserAction = {
35
35
type : 'none' ,
@@ -57,6 +57,11 @@ interface ConstantUserAction {
57
57
readonly target : string ;
58
58
}
59
59
60
+ interface DescriptionUserAction {
61
+ readonly type : 'description' ;
62
+ readonly target : string ;
63
+ }
64
+
60
65
interface EnumUserAction {
61
66
readonly type : 'enum' ;
62
67
readonly target : string ;
@@ -78,11 +83,6 @@ interface RenameUserAction {
78
83
readonly target : string ;
79
84
}
80
85
81
- interface DescriptionUserAction {
82
- readonly type : 'description' ;
83
- readonly target : string ;
84
- }
85
-
86
86
export enum HeatMapMode {
87
87
None ,
88
88
Usages ,
@@ -180,6 +180,12 @@ const uiSlice = createSlice({
180
180
target : action . payload ,
181
181
} ;
182
182
} ,
183
+ showDescriptionAnnotationForm ( state , action : PayloadAction < string > ) {
184
+ state . currentUserAction = {
185
+ type : 'description' ,
186
+ target : action . payload ,
187
+ } ;
188
+ } ,
183
189
showGroupAnnotationForm ( state , action : PayloadAction < GroupTarget > ) {
184
190
state . currentUserAction = {
185
191
type : 'group' ,
@@ -211,12 +217,6 @@ const uiSlice = createSlice({
211
217
target : action . payload ,
212
218
} ;
213
219
} ,
214
- showDescriptionAnnotationForm ( state , action : PayloadAction < string > ) {
215
- state . currentUserAction = {
216
- type : 'description' ,
217
- target : action . payload ,
218
- } ;
219
- } ,
220
220
hideAnnotationForm ( state ) {
221
221
state . currentUserAction = NoUserAction ;
222
222
} ,
@@ -276,12 +276,12 @@ export const {
276
276
showBoundaryAnnotationForm,
277
277
showCalledAfterAnnotationForm,
278
278
showConstantAnnotationForm,
279
+ showDescriptionAnnotationForm,
279
280
showEnumAnnotationForm,
280
281
showGroupAnnotationForm,
281
282
showMoveAnnotationForm,
282
283
showOptionalAnnotationForm,
283
284
showRenameAnnotationForm,
284
- showDescriptionAnnotationForm,
285
285
hideAnnotationForm,
286
286
287
287
toggleIsExpandedInTreeView,
0 commit comments