mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
dont render title if its the same with name (#546)
This commit is contained in:
committed by
Denys Vuika
parent
65777185b4
commit
ad6e027e6d
@@ -1,7 +1,7 @@
|
|||||||
<div class="line">
|
<div class="line">
|
||||||
<span *ngIf="isFile" (click)="showPreview()" class="link"> {{ name }} </span>
|
<span *ngIf="isFile" (click)="showPreview()" class="link"> {{ name }} </span>
|
||||||
<span *ngIf="!isFile" (click)="navigate()" class="bold link"> {{ name }} </span>
|
<span *ngIf="!isFile" (click)="navigate()" class="bold link"> {{ name }} </span>
|
||||||
<span *ngIf="hasTitle"> ( {{ title }} ) </span>
|
<span *ngIf="hasTitle && showTitle"> ( {{ title }} ) </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="hasDescription" class="line"> {{ description }} </div>
|
<div *ngIf="hasDescription" class="line"> {{ description }} </div>
|
||||||
|
@@ -81,6 +81,10 @@ export class SearchResultsRowComponent implements OnInit {
|
|||||||
return this.title;
|
return this.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get showTitle() {
|
||||||
|
return this.name !== this.title;
|
||||||
|
}
|
||||||
|
|
||||||
get hasSize() {
|
get hasSize() {
|
||||||
return this.size;
|
return this.size;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user