@@ -16,9 +16,10 @@ export enum EntryActionTypes {
16
16
CREATE_ENTRY = '[Entry] CREATE_ENTRY' ,
17
17
CREATE_ENTRY_SUCCESS = '[Entry] CREATE_ENTRY_SUCCESS' ,
18
18
CREATE_ENTRY_FAIL = '[Entry] CREATE_ENTRY_FAIL' ,
19
- UPDATE_ACTIVE_ENTRY = '[Entry] UPDATE_ACTIVE_ENTRY' ,
20
- UPDATE_ACTIVE_ENTRY_SUCCESS = '[Entry] UPDATE_ACTIVE_ENTRY_SUCCESS' ,
21
- UPDATE_ACTIVE_ENTRY_FAIL = '[Entry] UPDATE_ACTIVE_ENTRY_FAIL' ,
19
+ UPDATE_ENTRY_RUNNING = '[Entry] UPDATE_ENTRY_RUNNING' ,
20
+ UPDATE_ENTRY = '[Entry] UPDATE_ENTRY' ,
21
+ UPDATE_ENTRY_SUCCESS = '[Entry] UPDATE_ENTRY_SUCCESS' ,
22
+ UPDATE_ENTRY_FAIL = '[Entry] UPDATE_ENTRY_FAIL' ,
22
23
DELETE_ENTRY = '[Entry] DELETE_ENTRY' ,
23
24
DELETE_ENTRY_SUCCESS = '[Entry] DELETE_ENTRY_SUCCESS' ,
24
25
DELETE_ENTRY_FAIL = '[Entry] DELETE_ENTRY_FAIL' ,
@@ -112,20 +113,26 @@ export class DeleteEntryFail implements Action {
112
113
113
114
constructor ( public error : string ) { }
114
115
}
115
- export class UpdateActiveEntry implements Action {
116
- public readonly type = EntryActionTypes . UPDATE_ACTIVE_ENTRY ;
117
116
117
+ export class UpdateEntryRunning implements Action {
118
+ public readonly type = EntryActionTypes . UPDATE_ENTRY_RUNNING ;
118
119
constructor ( public payload ) { }
119
120
}
120
121
121
- export class UpdateActiveEntrySuccess implements Action {
122
- public readonly type = EntryActionTypes . UPDATE_ACTIVE_ENTRY_SUCCESS ;
122
+ export class UpdateEntry implements Action {
123
+ public readonly type = EntryActionTypes . UPDATE_ENTRY ;
124
+
125
+ constructor ( public payload ) { }
126
+ }
127
+
128
+ export class UpdateEntrySuccess implements Action {
129
+ public readonly type = EntryActionTypes . UPDATE_ENTRY_SUCCESS ;
123
130
124
131
constructor ( public payload : Entry ) { }
125
132
}
126
133
127
- export class UpdateActiveEntryFail implements Action {
128
- public readonly type = EntryActionTypes . UPDATE_ACTIVE_ENTRY_FAIL ;
134
+ export class UpdateEntryFail implements Action {
135
+ public readonly type = EntryActionTypes . UPDATE_ENTRY_FAIL ;
129
136
130
137
constructor ( public error : string ) { }
131
138
}
@@ -186,9 +193,10 @@ export type EntryActions =
186
193
| CreateEntry
187
194
| CreateEntrySuccess
188
195
| CreateEntryFail
189
- | UpdateActiveEntry
190
- | UpdateActiveEntrySuccess
191
- | UpdateActiveEntryFail
196
+ | UpdateEntryRunning
197
+ | UpdateEntry
198
+ | UpdateEntrySuccess
199
+ | UpdateEntryFail
192
200
| DeleteEntry
193
201
| DeleteEntrySuccess
194
202
| DeleteEntryFail
0 commit comments