[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:
konstantina.galouni 2021-04-13 13:32:58 +00:00
parent 635df208d8
commit b227f1d9f6
2 changed files with 8 additions and 2 deletions

View File

@ -12,9 +12,9 @@ import {Subscriber} from "rxjs";
template: `
<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.uk-container]="!isConnect">
<div [class.uk-container]="!isConnect" [class.uk-container-large]="!isConnect">
<div *ngIf="!isConnect" class="uk-article-title custom-article-title">
Manage links
</div>

View File

@ -17,6 +17,7 @@ import {ResultPreview} from "../../utils/result-preview/result-preview";
import {HttpClient} from "@angular/common/http";
import {Meta, Title} from "@angular/platform-browser";
import {UserManagementService} from "../../services/user-management.service";
import {PiwikService} from "../../utils/piwik/piwik.service";
declare var UIkit: any;
@ -186,6 +187,7 @@ export class MyOrcidLinksComponent {
public showErrorMessage: boolean = false;
constructor (private route: ActivatedRoute, private router: Router,
private _piwikService:PiwikService,
private _orcidService: OrcidService,
private _searchResearchResultsService: SearchResearchResultsService,
private userManagementService: UserManagementService,
@ -253,6 +255,10 @@ export class MyOrcidLinksComponent {
this.updateDescription(description);
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.getLocalWorks();
this.getPersonalDetails();