[Library | data-transfer-v2]: transferData.component.ts: Check we are on client side to open the modal | [Bug fix] In error message.
This commit is contained in:
parent
b34f1cdfbf
commit
ed856076d4
|
@ -135,8 +135,10 @@ export class EGIDataTransferComponent {
|
|||
this.egiTransferModal.alertTitle = "EOSC data transfer service [demo]";
|
||||
this.egiTransferModal.stayOpen = true;
|
||||
this.init();
|
||||
if(typeof document !== 'undefined') {
|
||||
this.egiTransferModal.open();
|
||||
}
|
||||
}
|
||||
close(){
|
||||
if(this.isOpen) {
|
||||
this.isOpen = false;
|
||||
|
@ -180,7 +182,7 @@ export class EGIDataTransferComponent {
|
|||
this.status = "init";
|
||||
}, error => {
|
||||
this.status = "errorParser";
|
||||
this.message = error.error && error.error.id && error.error.id == 'doiNotSupported'?'DOI not supported.':( error.error && error.error.description && error.error.description? error.error.description+'.':'Error parsing information.') ;
|
||||
this.message = error.error && error.error.id && error.error.id == 'doiNotSupported'?'DOI not supported.':( error.error && error.error.description && error.error.description? (error.error.description+'.'):'Error parsing information.') ;
|
||||
this.statusMessage = "danger";
|
||||
/* UIkit.notification(this.message, {
|
||||
status: 'error',
|
||||
|
|
Loading…
Reference in New Issue