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