Add selecttemporalitemssuccess
This commit is contained in:
@@ -172,6 +172,20 @@ export class MapEffects {
|
||||
}
|
||||
));
|
||||
|
||||
@Effect()
|
||||
selectItemSuccessTemporal$: Observable<Action> = this.actions$.pipe(
|
||||
ofType(mapActions.SELECTITEMSUCCESS),
|
||||
switchMap((action:mapActions.SelectItemSuccess) => {
|
||||
if(action.item.itemType == "vnd.farmmaps.itemtype.temporal") {
|
||||
return this.itemService$.getChildItemList(action.item.code,null).pipe(
|
||||
map((items) => new mapActions.SelectTemporalItemsSuccess(items )),
|
||||
catchError(error => of(new commonActions.Fail(error))));
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
));
|
||||
|
||||
@Effect()
|
||||
uploadedItemClick$: Observable<Action> = this.actions$.pipe(
|
||||
ofType(commonActions.UPLOADEDFILECLICK),
|
||||
|
Reference in New Issue
Block a user