Skip to content

Commit

Permalink
SHIBUI Updated effect to reload on change
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Feb 14, 2019
1 parent 74e8e78 commit f8b5d0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/src/app/admin/effect/admin-collection.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export class AdminCollectionEffects {
))
);

@Effect()
updateAdminRoleReload$ = this.actions$.pipe(
ofType<UpdateAdminSuccess>(AdminCollectionActionTypes.UPDATE_ADMIN_SUCCESS),
map(action => new LoadAdminRequest())
);

@Effect()
updateAdminRoleSuccess$ = this.actions$.pipe(
ofType<UpdateAdminSuccess>(AdminCollectionActionTypes.UPDATE_ADMIN_SUCCESS),
Expand Down
6 changes: 6 additions & 0 deletions ui/src/app/admin/effect/metadata-collection.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ export class MetadataCollectionEffects {
))
);

@Effect()
updateMetadataSuccessReload$ = this.actions$.pipe(
ofType<UpdateMetadataSuccess>(MetadataCollectionActionTypes.UPDATE_METADATA_SUCCESS),
map(() => new LoadMetadataRequest())
);

@Effect()
removeMetadata$ = this.actions$.pipe(
ofType<RemoveMetadataRequest>(MetadataCollectionActionTypes.REMOVE_METADATA),
Expand Down

0 comments on commit f8b5d0a

Please sign in to comment.