diff --git a/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.html b/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.html index 44db76c101..a548929bbd 100644 --- a/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.html +++ b/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.html @@ -55,6 +55,16 @@ +
+ + + + +
diff --git a/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.ts b/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.ts index e14537492d..6a81b4a011 100644 --- a/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.ts +++ b/packages/admin-ui/src/lib/customer/src/components/address-card/address-card.component.ts @@ -1,7 +1,6 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; - -import { GetAvailableCountries } from '@vendure/admin-ui/core'; +import { CustomFieldConfig, GetAvailableCountries } from '@vendure/admin-ui/core'; @Component({ selector: 'vdr-address-card', @@ -12,6 +11,7 @@ import { GetAvailableCountries } from '@vendure/admin-ui/core'; export class AddressCardComponent implements OnInit { editing = false; @Input() addressForm: FormGroup; + @Input() customFields: CustomFieldConfig; @Input() availableCountries: GetAvailableCountries.Items[] = []; @Input() isDefaultBilling: string; @Input() isDefaultShipping: string; diff --git a/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.html b/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.html index 778f95f975..0736199e5e 100644 --- a/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.html +++ b/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.html @@ -111,6 +111,7 @@

{{ 'customer.addresses' | translate }}

[isDefaultBilling]="defaultBillingAddressId === addressForm.value.id" [isDefaultShipping]="defaultShippingAddressId === addressForm.value.id" [addressForm]="addressForm" + [customFields]="addressCustomFields" (setAsDefaultBilling)="setDefaultBillingAddressId($event)" (setAsDefaultShipping)="setDefaultShippingAddressId($event)" > diff --git a/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.ts b/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.ts index a21d584509..75ec69b29f 100644 --- a/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.ts +++ b/packages/admin-ui/src/lib/customer/src/components/customer-detail/customer-detail.component.ts @@ -49,6 +49,7 @@ export class CustomerDetailComponent extends BaseDetailComponent; orders$: Observable; ordersCount$: Observable; @@ -74,6 +75,7 @@ export class CustomerDetailComponent extends BaseDetailComponent