Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion catalog-app/listing/listing.gts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ class EmbeddedTemplate extends Component<typeof Listing> {
return this.images.length > 0;
}

get hasMultipleImages() {
return this.images.length > 1;
}

get hasExamples() {
return Boolean(this.args.model.examples?.length);
}
Expand Down Expand Up @@ -299,7 +303,7 @@ class EmbeddedTemplate extends Component<typeof Listing> {
</div>
</div>

{{#if this.hasImages}}
{{#if this.hasMultipleImages}}
<div class='thumbs'>
{{#each this.images as |shot index|}}
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"meta": {
"adoptsFrom": {
"name": "FieldListing",
"module": "../../../catalog-app/listing/listing"
"module": "@cardstack/catalog/catalog-app/listing/listing"
}
},
"type": "card",
Expand Down
Loading