[Library]: modal replace isOpen = true with open function
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57663 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
445e9f0441
commit
0bb213622d
|
@ -34,7 +34,7 @@ export class SearchDataproviderMapComponent {
|
|||
@Input() totalResults:number = 0;
|
||||
@Input() mapUrl: string;
|
||||
@Input() mapTooltipType: string ="";
|
||||
@ViewChild(AlertModal) alertModalMap;
|
||||
@ViewChild('AlertModalMap') alertModalMap: AlertModal;
|
||||
|
||||
public errorCodes:ErrorCodes = new ErrorCodes();
|
||||
|
||||
|
@ -45,11 +45,11 @@ export class SearchDataproviderMapComponent {
|
|||
ngOnDestroy() {}
|
||||
|
||||
openMapModal() {
|
||||
this.alertModalMap.isOpen = true;
|
||||
this.alertModalMap.cancelButton = true;
|
||||
this.alertModalMap.okButton = false;
|
||||
this.alertModalMap.alertTitle = "Map of Content Providers";
|
||||
this.alertModalMap.message = "";
|
||||
this.alertModalMap.cancelButtonText = "Close";
|
||||
this.alertModalMap.open();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ export class SearchDownloadComponent {
|
|||
@Input() totalResults:number = 0;
|
||||
@Input() csvParams: string;
|
||||
@Input() type: string;
|
||||
@ViewChild(AlertModal) alertApplyAll;
|
||||
@ViewChild(AlertModal) alertApplyAll: AlertModal;
|
||||
private downloadURLAPI: string;
|
||||
|
||||
sub: any;
|
||||
|
@ -78,12 +78,12 @@ export class SearchDownloadComponent {
|
|||
}
|
||||
|
||||
denialOfDownload() {
|
||||
this.alertApplyAll.isOpen = true;
|
||||
this.alertApplyAll.cancelButton = true;
|
||||
this.alertApplyAll.okButton = false;
|
||||
this.alertApplyAll.alertTitle = "Download Results in CSV";
|
||||
this.alertApplyAll.message = "Sorry, but the results are too many! Use the api instead!";
|
||||
this.alertApplyAll.cancelButtonText = "Ok";
|
||||
this.alertApplyAll.open();
|
||||
|
||||
console.error("Error downloading file. Results are too many!");
|
||||
//this.handleError("Error downloading file. Results are too many!", err);
|
||||
|
|
Loading…
Reference in New Issue