Project

General

Profile

« Previous | Next » 

Revision 58598

[Library | Trunk]: Add openaire metrics.

View differences:

project.component.ts
447 447
    this.totalDownloads = $event.totalDownloads;
448 448
    this.pageViews = $event.pageViews;
449 449
  }
450
  
451
  public get hasMetrics(): boolean {
452
    return !(this.totalViews && this.totalDownloads && this.pageViews) || this.totalViews > 0 || this.totalDownloads > 0||this.pageViews > 0;
453
  }
450 454

  
451 455
  public openStatistics() {
452 456
    this.statsClicked = true;

Also available in: Unified diff