Revision 56936
Added by Konstantina Galouni over 4 years ago
resultLanding.component.ts | ||
---|---|---|
1 |
import {Component, Input} from '@angular/core'; |
|
1 |
import {Component, Input, ViewChild} from '@angular/core';
|
|
2 | 2 |
import {ActivatedRoute, Router} from '@angular/router'; |
3 | 3 |
import {Meta, Title} from '@angular/platform-browser'; |
4 | 4 |
|
... | ... | |
27 | 27 |
// Active tab variable for responsiveness |
28 | 28 |
@Input() activeTab: string = "References"; |
29 | 29 |
|
30 |
@ViewChild('AlertModalDeletedByInference') alertModalDeletedByInference; |
|
31 |
|
|
30 | 32 |
public resultLandingInfo: ResultLandingInfo; |
31 | 33 |
public id: string; |
32 | 34 |
public title: string; |
... | ... | |
382 | 384 |
} |
383 | 385 |
return false; |
384 | 386 |
} |
387 |
|
|
388 |
openDeletedByInference() { |
|
389 |
this.alertModalDeletedByInference.cancelButton = false; |
|
390 |
this.alertModalDeletedByInference.okButton = false; |
|
391 |
this.alertModalDeletedByInference.alertTitle = "Original sources"; |
|
392 |
//this.alertModalDeletedByInference.message = "There was an error in csv downloading. Please try again later."; |
|
393 |
//this.alertModalDeletedByInference.okButtonText = "OK"; |
|
394 |
this.alertModalDeletedByInference.open(); |
|
395 |
} |
|
385 | 396 |
} |
Also available in: Unified diff
[mergeResultLandingPages | Library]:
resultLanding.component: small bug fixes in names used & 'Other versions' removed from accordion and added as modal which opens with a note under the title.