Project

General

Profile

« Previous | Next » 

Revision 58683

[Monitor Dashaboard | Fix some bugs with indicators saving]

View differences:

monitor.component.ts
14 14
import {Category, ChartHelper, IndicatorPath, Stakeholder, SubCategory, Topic} from "../utils/entities/stakeholder";
15 15
import {StatisticsService} from "../utils/services/statistics.service";
16 16
import {IndicatorUtils, StakeholderUtils} from "../utils/indicator-utils";
17
import {StakeholderCreator} from "../utils/entities/stakeholderCreator";
18 17
import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sidebar/layout.service";
19 18
import {FormBuilder, FormControl} from "@angular/forms";
20 19
import {IDeactivateComponent} from "../openaireLibrary/utils/can-exit.guard";
......
172 171
    return this.layoutService.open;
173 172
  }
174 173
  
175
  public toggleOpen(event = null) {
176
    if (!event) {
177
      this.layoutService.setOpen(!this.open);
178
    } else if (event && event['value'] === true) {
179
      this.layoutService.setOpen(false);
180
    }
181
  }
182
  
183 174
  private getPageContents() {
184
    this.helper.getPageHelpContents(this._router.url, this.properties, 'monitor').subscribe(contents => {
175
    this.helper.getPageHelpContents(this.properties, 'monitor', this._router.url).subscribe(contents => {
185 176
      this.pageContents = contents;
186 177
    })
187 178
  }
188 179
  
189 180
  private getDivContents() {
190
    this.helper.getDivHelpContents(this._router.url, this.properties, 'monitor').subscribe(contents => {
181
    this.helper.getDivHelpContents(this.properties, 'monitor', this._router.url).subscribe(contents => {
191 182
      this.divContents = contents;
192 183
    })
193 184
  }

Also available in: Unified diff