Project

General

Profile

« Previous | Next » 

Revision 51584

final commit before first deployment

View differences:

sr-literature.component.ts
13 13
import {formInfoLoading, loadingRepoError, noInterfacesSaved} from '../../../domain/shared-messages';
14 14
import {ActivatedRoute, Params, Router} from "@angular/router";
15 15
import {MyArray} from "../../../shared/reusablecomponents/forms/my-array.interface";
16
import {
17
  AsideHelpContentComponent,
18
  HelpContentComponent
19
} from "../../../shared/reusablecomponents/help-content.component";
16 20

  
17 21
@Component ({
18 22
  selector:'app-sr-literature',
......
39 43
   * the param that is used is 'step' and the values are: 'selectDatasource','basicInformation','interfaces','finish'
40 44
   */
41 45
  queryParams: Params = Object.assign({}, this.route.snapshot.queryParams);
46
  @ViewChild('topHelperContent')
47
  public topHelperContent: HelpContentComponent;
48
  @ViewChild('leftHelperContent')
49
  public leftHelperContent: AsideHelpContentComponent;
50
  @ViewChild('rightHelperContent')
51
  public rightHelperContent: AsideHelpContentComponent;
52
  @ViewChild('bottomHelperContent')
53
  public bottomHelperContent: HelpContentComponent;
42 54

  
43 55
  @ViewChild('datasourcesByCountry')
44 56
  public datasourcesByCountry: RegisterDatasourceShareableComponent;
......
91 103

  
92 104
  moveBackAStep(){
93 105
    if(this.showForm) {
94
      this.setQueryParam('baseUrl');
106
      this.setQueryParam('selectDatasource');
95 107
      this.showRepositories = true;
96 108
      this.showForm = false;
97 109
      this.step2 = '';
......
177 189
    // set param for step
178 190
    this.queryParams['step'] = value;
179 191
    this.router.navigate([], { relativeTo: this.route, queryParams: this.queryParams });
192
    this.rightHelperContent.ngOnInit();
193
    this.topHelperContent.ngOnInit();
194
    this.leftHelperContent.ngOnInit();
195
    this.bottomHelperContent.ngOnInit();
180 196
  }
181 197

  
182 198
}

Also available in: Unified diff