Skip to content

Commit

Permalink
feat(#204) Storing report to edit in service
Browse files Browse the repository at this point in the history
  • Loading branch information
AudreyLR authored and philipperobertgh committed Nov 26, 2018
1 parent d24b3fc commit ed218f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/report-configuration/report-configuration.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import {ReportConfigurationComponent} from './report-configuration.component';
import {TranslateModule} from '@ngx-translate/core';
import {SelectTemplateDialogComponent} from './select-template/select-template-dialog.component';
import {SelectTemplateComponent} from './select-template/select-template.component';
import {MatFormFieldModule, MatDialogModule, MatSelectModule, MatOptionModule, MatInputModule, MatListModule} from '@angular/material';
import {TextEditorModule} from 'cause-report-configuration';

import {ReportTemplateService} from '../shared/services/report-template.service';

@NgModule({
imports: [
Expand All @@ -25,8 +25,9 @@ import {TextEditorModule} from 'cause-report-configuration';
],
declarations: [
ReportConfigurationComponent,
SelectTemplateDialogComponent
SelectTemplateComponent
],
entryComponents: [SelectTemplateDialogComponent]
providers: [
ReportTemplateService,
})
export class ReportConfigurationModule { }
1 change: 1 addition & 0 deletions src/app/shared/services/report-template.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {PlaceholderGroup} from '../../report-configuration/shared/models/placeho

@Injectable()
export class ReportTemplateService extends RequestService {
currentReport = null;

constructor(http: HttpClient, injector: Injector) {
super(injector);
Expand Down

0 comments on commit ed218f4

Please sign in to comment.