Merge pull request 'Merge on-push-strategy branch into develop (on push strategy in result-preview component, i.e. search result cards)' (#39) from on-push-strategy into develop
Reviewed-on: #39
This commit is contained in:
commit
d6a2ba004a
|
@ -78,7 +78,7 @@ export class SearchResultComponent implements OnInit, OnChanges {
|
||||||
// console.debug(i, this.previewResults[i].orcidPutCodes);
|
// console.debug(i, this.previewResults[i].orcidPutCodes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// this.previewResults = JSON.parse(JSON.stringify(this.previewResults, this.replacer), this.reviver);
|
this.previewResults = JSON.parse(JSON.stringify(this.previewResults, this.replacer), this.reviver);
|
||||||
}, error => {
|
}, error => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
<div *ngIf="result.oaRoutes" class="uk-first-column">
|
<div *ngIf="result.oaRoutes" class="uk-first-column">
|
||||||
<!-- class="metrics uk-text-xsmall uk-width-auto uk-flex uk-flex-middle uk-flex-right uk-text-meta">-->
|
<!-- class="metrics uk-text-xsmall uk-width-auto uk-flex uk-flex-middle uk-flex-right uk-text-meta">-->
|
||||||
<a class="uk-flex uk-flex-middle uk-link-reset">
|
<a class="uk-flex uk-flex-middle uk-link-reset">
|
||||||
<span #badge class="access-route-badge" [ngClass]="'dots-' + badge.children.length.toString()">
|
<span #badge class="access-route-badge" [ngClass]="'dots-' + countDots">
|
||||||
<span *ngIf="result.oaRoutes.green" class="dot green"></span>
|
<span *ngIf="result.oaRoutes.green" class="dot green"></span>
|
||||||
<span *ngIf="result.oaRoutes.oaColor" class="dot" [ngClass]="result.oaRoutes.oaColor"></span>
|
<span *ngIf="result.oaRoutes.oaColor" class="dot" [ngClass]="result.oaRoutes.oaColor"></span>
|
||||||
<span *ngIf="result.oaRoutes.isInDiamondJournal" class="dot diamond"></span>
|
<span *ngIf="result.oaRoutes.isInDiamondJournal" class="dot diamond"></span>
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {NumberUtils} from '../number-utils.class';
|
||||||
selector: 'result-preview',
|
selector: 'result-preview',
|
||||||
templateUrl: 'result-preview.component.html',
|
templateUrl: 'result-preview.component.html',
|
||||||
styleUrls: ['result-preview.component.less'],
|
styleUrls: ['result-preview.component.less'],
|
||||||
// changeDetection: ChangeDetectionStrategy.OnPush
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
})
|
})
|
||||||
export class ResultPreviewComponent implements OnInit, OnChanges {
|
export class ResultPreviewComponent implements OnInit, OnChanges {
|
||||||
@Input() prevPath: string = "";
|
@Input() prevPath: string = "";
|
||||||
|
|
Loading…
Reference in New Issue