[develop | DONE | CHANGED]: project.component.html & entity-actions.component.ts: Adding checks to not show "Embed" action in projects in "beta" environment (not available on Joomla) | project.component: Removed old unused code for embed action.
This commit is contained in:
parent
b81609b265
commit
2989ead293
|
@ -148,56 +148,6 @@
|
|||
<div [attr.style]="'margin-top: '+(graph_height? 'calc(40px + 20px - '+graph_height+'px)': '40px')">
|
||||
<div class="uk-grid uk-grid-small" uk-grid>
|
||||
<div class="uk-width-expand">
|
||||
|
||||
<!-- Actions for mobile viewport -->
|
||||
<div class="uk-flex uk-flex-right uk-margin-medium-bottom uk-hidden@s">
|
||||
<div class="uk-margin-small-right">
|
||||
<a (click)="openAddThisModal()"
|
||||
[title]="'Share this '+openaireEntities.PROJECT+' in your social networks'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active uk-text-small uk-padding-small'">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<icon name="share" visuallyHidden="share"></icon>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="isRouteAvailable('participate/direct-claim')" class="uk-margin-small-right"
|
||||
[title]="'<span class=\'uk-flex uk-flex-middle\'>Link this project to '+openaireEntities.RESULTS+'<span class=\'material-icons uk-margin-small-left\'>east</span></span>'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active uk-text-small uk-padding-small'">
|
||||
<a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId, 'project','result'])"
|
||||
routerLinkActive="router-link-active" routerLink="/participate/direct-claim">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<icon name="link" visuallyHidden="link"></icon>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="isRouteAvailable('participate/deposit/learn-how')" class="uk-margin-small-right"
|
||||
[title]="'<span class=\'uk-flex uk-flex-middle\'>Deposit your research <span class=\'material-icons uk-margin-small-left\'>east</span></span>'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active uk-text-small uk-padding-small'">
|
||||
<a routerLinkActive="router-link-active" routerLink="/participate/deposit/learn-how">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<icon name="upload" visuallyHidden="upload"></icon>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-margin-small-right"
|
||||
[title]="'Embed results'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active uk-text-small uk-padding-small'">
|
||||
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openEmbedResultsModal()">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<icon name="code" visuallyHidden="code"></icon>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class=""
|
||||
[title]="'Download report'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active uk-text-small uk-padding-small'">
|
||||
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openDownloadReportModal()">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<icon name="download" visuallyHidden="download"></icon>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']"></helper>
|
||||
|
||||
|
@ -543,7 +493,7 @@
|
|||
</div>
|
||||
<hr class="uk-margin-remove">
|
||||
</ng-container>
|
||||
<ng-container>
|
||||
<ng-container *ngIf="properties.environment !== 'beta'">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
||||
<div class="clickable" (click)="openFsModal(embedResultsFsModal, 'Embed results')">
|
||||
<div class="uk-button-link uk-flex uk-flex-middle uk-h6 uk-margin-xsmall-bottom">
|
||||
|
@ -656,10 +606,6 @@
|
|||
<addThis></addThis>
|
||||
</modal-alert>
|
||||
|
||||
<modal-alert *ngIf="projectInfo" #embedResultsModal large="true">
|
||||
<ng-container *ngTemplateOutlet="embed_content"></ng-container>
|
||||
</modal-alert>
|
||||
|
||||
<modal-alert *ngIf="projectInfo" #downloadReportModal>
|
||||
<ng-container *ngTemplateOutlet="download_content"></ng-container>
|
||||
</modal-alert>
|
||||
|
|
|
@ -91,7 +91,6 @@ export class ProjectComponent {
|
|||
|
||||
// @ViewChild('statisticsModal') statisticsModal;
|
||||
// @ViewChild('linkProjectModal') linkProjectModal;
|
||||
@ViewChild('embedResultsModal') embedResultsModal;
|
||||
@ViewChild('embedResultsFsModal') embedResultsFsModal: FullScreenModalComponent;
|
||||
@ViewChild('downloadReportModal') downloadReportModal;
|
||||
@ViewChild('downloadReportFsModal') downloadReportFsModal: FullScreenModalComponent;
|
||||
|
@ -662,13 +661,6 @@ export class ProjectComponent {
|
|||
this.addThisModal.open();
|
||||
}
|
||||
|
||||
public openEmbedResultsModal() {
|
||||
this.embedResultsModal.cancelButton = false;
|
||||
this.embedResultsModal.okButton = false;
|
||||
this.embedResultsModal.alertTitle = "Embed results";
|
||||
this.embedResultsModal.open();
|
||||
}
|
||||
|
||||
public openDownloadReportModal() {
|
||||
if(this.fetchPublications.searchUtils.totalResults > 0 || this.fetchDatasets.searchUtils.totalResults > 0 ||
|
||||
this.fetchSoftware.searchUtils.totalResults > 0 || this.fetchOrps.searchUtils.totalResults > 0) {
|
||||
|
|
|
@ -43,7 +43,7 @@ import {EnvProperties} from "../properties/env-properties";
|
|||
<span *ngIf="!compactView" class="uk-margin-xsmall-left">Deposit</span>
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="embed" >
|
||||
<div *ngIf="embed && properties.environment !== 'beta'">
|
||||
<a (click)="openEmbedResultsModal()"
|
||||
[attr.uk-tooltip]="showTooltip ? 'title: Embed the related '+openaireEntities.RESULTS+' of this '+getTypeName()+' in your website; pos: bottom; cls: uk-active uk-text-small uk-padding-small uk-width-medium' : 'cls: uk-invisible'"
|
||||
class="uk-flex uk-flex-middle uk-button-link" [ngClass]="isMobile ? 'uk-margin-left uk-margin-xsmall-bottom' : 'uk-text-bolder uk-flex-center'">
|
||||
|
|
Loading…
Reference in New Issue