@@ -16,9 +16,10 @@ export enum EntryActionTypes {
1616 CREATE_ENTRY = '[Entry] CREATE_ENTRY' ,
1717 CREATE_ENTRY_SUCCESS = '[Entry] CREATE_ENTRY_SUCCESS' ,
1818 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' ,
2223 DELETE_ENTRY = '[Entry] DELETE_ENTRY' ,
2324 DELETE_ENTRY_SUCCESS = '[Entry] DELETE_ENTRY_SUCCESS' ,
2425 DELETE_ENTRY_FAIL = '[Entry] DELETE_ENTRY_FAIL' ,
@@ -112,20 +113,26 @@ export class DeleteEntryFail implements Action {
112113
113114 constructor ( public error : string ) { }
114115}
115- export class UpdateActiveEntry implements Action {
116- public readonly type = EntryActionTypes . UPDATE_ACTIVE_ENTRY ;
117116
117+ export class UpdateEntryRunning implements Action {
118+ public readonly type = EntryActionTypes . UPDATE_ENTRY_RUNNING ;
118119 constructor ( public payload ) { }
119120}
120121
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 ;
123130
124131 constructor ( public payload : Entry ) { }
125132}
126133
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 ;
129136
130137 constructor ( public error : string ) { }
131138}
@@ -186,9 +193,10 @@ export type EntryActions =
186193 | CreateEntry
187194 | CreateEntrySuccess
188195 | CreateEntryFail
189- | UpdateActiveEntry
190- | UpdateActiveEntrySuccess
191- | UpdateActiveEntryFail
196+ | UpdateEntryRunning
197+ | UpdateEntry
198+ | UpdateEntrySuccess
199+ | UpdateEntryFail
192200 | DeleteEntry
193201 | DeleteEntrySuccess
194202 | DeleteEntryFail
0 commit comments