Portal search result add getLogoUrl
This commit is contained in:
parent
79e6748d7f
commit
b9e6894ba1
|
@ -43,6 +43,10 @@ export class Stakeholder {
|
|||
this.description = description;
|
||||
this.topics = [];
|
||||
}
|
||||
|
||||
getLogoUrl() {
|
||||
return (this.isUpload?(properties.utilsService + '/download/' + this.logoUrl):this.logoUrl);
|
||||
}
|
||||
}
|
||||
|
||||
export class StakeholderInfo extends Stakeholder {
|
||||
|
|
|
@ -105,13 +105,11 @@
|
|||
</modal-alert>
|
||||
<ng-template #resultPreview let-result="result">
|
||||
<div class="uk-flex uk-flex-center">
|
||||
<img *ngIf="result.logoUrl && result.logoUrl != '' && result.isUpload "
|
||||
[src]="properties.utilsService + '/download/' + result.logoUrl"
|
||||
<img *ngIf="result.logoUrl"
|
||||
[src]="result.getLogoUrl()"
|
||||
alt="{{(result.title)?result.title:result.shortTitle}} logo" loading="lazy">
|
||||
<img *ngIf="result.logoUrl && result.logoUrl != '' && !result.isUpload " [src]="result.logoUrl | urlPrefix"
|
||||
alt="{{(result.title)?result.title:result.shortTitle}} logo" loading="lazy">
|
||||
<span *ngIf="result.logoUrl == null || result.logoUrl == ''" class="uk-icon">
|
||||
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
|
||||
<span *ngIf="!result.logoUrl" class="uk-icon">
|
||||
<svg viewBox="0 0 20 20" class="uk-width-1-1" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
|
||||
stroke="#000"
|
||||
stroke-width="1.1"
|
||||
cx="7.7" cy="8.6"
|
||||
|
|
Loading…
Reference in New Issue