Browse Source

feat(admin-ui): Add product slug in product multi selector dialog component (#2461)

Gautier Darchen 2 years ago
parent
commit
b7f34528bf

+ 6 - 0
packages/admin-ui/src/lib/core/src/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.html

@@ -37,6 +37,12 @@
                 <span [title]="mode === 'product' ? item.productName : item.productVariantName">{{
                     mode === 'product' ? item.productName : item.productVariantName
                 }}</span>
+                <div *ngIf="mode === 'product'">
+                    <small>
+                        <span class="mr-1">{{ 'common.slug' | translate }}:</span>
+                        <code>{{ item.slug }}</code>
+                    </small>
+                </div>
                 <div *ngIf="mode === 'variant'"><small>{{ item.sku }}</small></div>
             </div>
         </div>

+ 1 - 0
packages/admin-ui/src/lib/core/src/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.scss

@@ -74,3 +74,4 @@ vdr-select-toggle {
     align-items: center;
     justify-content: space-between;
 }
+