diff --git a/landingPages/landing-utils/addThis.component.ts b/landingPages/landing-utils/addThis.component.ts index 9753b1a0..88224fb9 100644 --- a/landingPages/landing-utils/addThis.component.ts +++ b/landingPages/landing-utils/addThis.component.ts @@ -1,4 +1,14 @@ -import {Component, EventEmitter, Inject, OnInit, Output, RendererFactory2, ViewEncapsulation} from '@angular/core'; +import { + ChangeDetectorRef, + Component, + EventEmitter, + Inject, + OnInit, + Output, + RendererFactory2, + ViewChild, + ViewEncapsulation +} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {DOCUMENT} from "@angular/common"; import {Subscriber} from "rxjs"; @@ -67,11 +77,10 @@ export class AddThisComponent implements OnInit { } } this.subs.push(setTimeout(() => { - if(this.document.getElementById('addThis') && this.document.getElementById('addThis').innerText.length ==0){ + if(this.document.getElementById('addThis') && this.document.getElementById('addThis').innerText){ this.showWarning = true; } - }, 2000)); - + }, 4000)); }catch (e) { // console.error(e) } diff --git a/orcid/my-orcid-links/searchMyOrcidResults.component.html b/orcid/my-orcid-links/searchMyOrcidResults.component.html index 731a80f0..c7848ea2 100644 --- a/orcid/my-orcid-links/searchMyOrcidResults.component.html +++ b/orcid/my-orcid-links/searchMyOrcidResults.component.html @@ -5,10 +5,10 @@ [totalResults]="totalResults"> -