Skip to content

Commit

Permalink
feat(products): show only variants
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Nov 27, 2024
1 parent dabe372 commit 162795b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="data-list m-0 p-0">
<div class="row justify-content-between align-items-center">
<div class="my-2 rc-lv-l-heading">
Product Variants [{{ actualVariantLength }}]
Product Variants [{{ variants.length }}]
</div>

<button
Expand All @@ -20,7 +20,7 @@
<ul class="data-list-body no-border">
<li
class="row data-list-item product-item"
*ngFor="let variant of variantsWithoutBaseVariant"
*ngFor="let variant of variants"
>
<rc-product-variant
[variant]="variant"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ export class RcProductVariantsComponent {
new EventEmitter<IIoRestorecommerceProductPhysicalVariant>();

@Output() deleteVariant = new EventEmitter<string>();

get variantsWithoutBaseVariant() {
return this.variants.slice(1);
}

get actualVariantLength() {
return this.variants.length - 1;
}
}

0 comments on commit 162795b

Please sign in to comment.