Skip to content

Commit

Permalink
Merge branch 'staging' into l10n_staging
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Nov 10, 2019
2 parents 91d1662 + 7fe65c2 commit 9ac83d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/effects/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ export class QueryEffects {
if (schema) {
this.gqlService.getSDL(schema).then(sdl => {
return this.store.dispatch(new gqlSchemaActions.SetSchemaSDLAction(action.windowId, { sdl }))
})
.catch(err => {
this.notifyService.error('Could not set schema SDL');
});
}

Expand Down Expand Up @@ -638,6 +641,9 @@ export class QueryEffects {
downloadData(sdl, 'sdl', { fileType: 'gql' });
}
})
.catch(err => {
this.notifyService.error('Could not export SDL. Your schema might be invalid.');
});
}
return observableEmpty();
}),
Expand Down
2 changes: 2 additions & 0 deletions src/app/services/window.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import { StoreModule, Store } from '@ngrx/store';

import * as services from '../services';
import { WindowService } from './window.service';
import { GqlService } from './gql/gql.service';

describe('WindowService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
WindowService,
GqlService,
services.DbService,
{ provide: Store, useValue: {
subscribe: () => {},
Expand Down

0 comments on commit 9ac83d3

Please sign in to comment.