added changes to show the top notification after update
@@ -113,6 +113,14 @@ export class ServerEffects {
catchError((error: HttpErrorResponse) =>
observableOf(new UpdateServerFailure(error))))));
+ @Effect()
+ updateOrgSuccess$ = this.actions$.pipe(
+ ofType(ServerActionTypes.UPDATE_SUCCESS),
+ map(({ payload: { server } }: UpdateServerSuccess) => new CreateNotification({
+ type: Type.info,
+ message: `Updated server ${server.name}.`
+ })));
+
@Effect()
updateServerFailure$ = this.actions$.pipe(
ofType(ServerActionTypes.UPDATE_FAILURE),
