Skip to content

Commit

Permalink
Merge pull request #910 from vorth/zometool-products
Browse files Browse the repository at this point in the history
Adjustments to zometool products list
  • Loading branch information
vorth authored Aug 19, 2024
2 parents f6f9f00 + e0aabdc commit c81d9d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion online/serve/app/test/cases/zometool-model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>Zometool Model Demo</h1>
</zometool-instructions>

<zometool-parts-required></zometool-parts-required>
<zometool-covering-products>Supporting Products:</zometool-covering-products>
<zometool-covering-products></zometool-covering-products>

</div>
<!-- ^^^^^^^ ----- This is the portion you will enter as content HTML for the page -->
Expand Down
2 changes: 1 addition & 1 deletion online/src/wc/zometool/products-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const findProducts = ( bom, parts, products ) =>

const result = [];
Object.entries( products ) .map( ([ code, product ]) => {
if ( productCoversBom( product, bom ) )
if ( product.url && productCoversBom( product, bom ) ) // ignore products without a URL
result .push( { name: product.label, url: product.url } );
} );
return result;
Expand Down
4 changes: 4 additions & 0 deletions online/src/wc/zometool/zometool.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export const instructionsCSS = `
grid-template-rows: min-content 1fr 90px;
}
zometool-covering-products::before {
content: "Supporting products:";
}
.matched-product {
min-width: 250px;
display: flex;
Expand Down

0 comments on commit c81d9d6

Please sign in to comment.