[Trunk | Library]:
1. claimsAdmin.component.ts: [Bug fix] Added "uk-margin-small-top" in grid | [Bug fix] Added "uk-container-large" class (when !isConnect) together with "uk-container". 2. myOrcidLinks.component.ts: Added piwik tracking when it is enabled (in Explore, there is no input "piwikSiteId" and piwikService resolves it from properties). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60857 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
635df208d8
commit
b227f1d9f6
|
@ -12,9 +12,9 @@ import {Subscriber} from "rxjs";
|
||||||
template: `
|
template: `
|
||||||
|
|
||||||
<div id="tm-main" [class]="((isConnect)?'':'uk-section') +' uk-padding-remove-top tm-middle'">
|
<div id="tm-main" [class]="((isConnect)?'':'uk-section') +' uk-padding-remove-top tm-middle'">
|
||||||
<div uk-grid>
|
<div uk-grid class="uk-margin-small-top">
|
||||||
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
||||||
<div [class.uk-container]="!isConnect">
|
<div [class.uk-container]="!isConnect" [class.uk-container-large]="!isConnect">
|
||||||
<div *ngIf="!isConnect" class="uk-article-title custom-article-title">
|
<div *ngIf="!isConnect" class="uk-article-title custom-article-title">
|
||||||
Manage links
|
Manage links
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,6 +17,7 @@ import {ResultPreview} from "../../utils/result-preview/result-preview";
|
||||||
import {HttpClient} from "@angular/common/http";
|
import {HttpClient} from "@angular/common/http";
|
||||||
import {Meta, Title} from "@angular/platform-browser";
|
import {Meta, Title} from "@angular/platform-browser";
|
||||||
import {UserManagementService} from "../../services/user-management.service";
|
import {UserManagementService} from "../../services/user-management.service";
|
||||||
|
import {PiwikService} from "../../utils/piwik/piwik.service";
|
||||||
|
|
||||||
declare var UIkit: any;
|
declare var UIkit: any;
|
||||||
|
|
||||||
|
@ -186,6 +187,7 @@ export class MyOrcidLinksComponent {
|
||||||
public showErrorMessage: boolean = false;
|
public showErrorMessage: boolean = false;
|
||||||
|
|
||||||
constructor (private route: ActivatedRoute, private router: Router,
|
constructor (private route: ActivatedRoute, private router: Router,
|
||||||
|
private _piwikService:PiwikService,
|
||||||
private _orcidService: OrcidService,
|
private _orcidService: OrcidService,
|
||||||
private _searchResearchResultsService: SearchResearchResultsService,
|
private _searchResearchResultsService: SearchResearchResultsService,
|
||||||
private userManagementService: UserManagementService,
|
private userManagementService: UserManagementService,
|
||||||
|
@ -253,6 +255,10 @@ export class MyOrcidLinksComponent {
|
||||||
this.updateDescription(description);
|
this.updateDescription(description);
|
||||||
this.updateUrl( properties.domain + properties.baseLink + this.route.url);
|
this.updateUrl( properties.domain + properties.baseLink + this.route.url);
|
||||||
|
|
||||||
|
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
|
||||||
|
this.subscriptions.push(this._piwikService.trackView(this.properties, "My ORCID links", this.piwikSiteId).subscribe());
|
||||||
|
}
|
||||||
|
|
||||||
this.typeQuery = "&type=results";
|
this.typeQuery = "&type=results";
|
||||||
this.getLocalWorks();
|
this.getLocalWorks();
|
||||||
this.getPersonalDetails();
|
this.getPersonalDetails();
|
||||||
|
|
Loading…
Reference in New Issue