diff --git a/ui/src/app/metadata/resolver/effect/collection.effects.ts b/ui/src/app/metadata/resolver/effect/collection.effects.ts index ff5c5ea9c..2a92b0242 100644 --- a/ui/src/app/metadata/resolver/effect/collection.effects.ts +++ b/ui/src/app/metadata/resolver/effect/collection.effects.ts @@ -35,6 +35,7 @@ import { I18nService } from '../../../i18n/service/i18n.service'; import * as fromRoot from '../../../app.reducer'; import * as fromI18n from '../../../i18n/reducer'; import { FileBackedHttpMetadataResolver } from '../../domain/entity'; +import { UpdateSaving } from '../action/entity.action'; /* istanbul ignore next */ @@ -79,6 +80,21 @@ export class ResolverCollectionEffects { }) ); + @Effect() + updateResolverSavingOnRequest$ = this.actions$.pipe( + ofType(ResolverCollectionActionTypes.UPDATE_RESOLVER_REQUEST), + map(action => new UpdateSaving(true)), + ); + + @Effect() + updateResolverSavingOnResult$ = this.actions$.pipe( + ofType( + ResolverCollectionActionTypes.UPDATE_RESOLVER_SUCCESS, + ResolverCollectionActionTypes.UPDATE_RESOLVER_FAIL + ), + map(action => new UpdateSaving(false)), + ); + @Effect({ dispatch: false }) updateResolverSuccessRedirect$ = this.actions$.pipe( ofType(ResolverCollectionActionTypes.UPDATE_RESOLVER_SUCCESS),