mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged PR 2013: 🐛 fix(order-destination): display 'Hugendubel Digital' for download destinat...
🐛 fix(order-destination): display 'Hugendubel Digital' for download destinations Fixes #5453 - Add handling for Download order type in name() computed signal to return 'Hugendubel Digital' - Add handling for Download order type in address() computed signal to return undefined - Update template to conditionally show pipe separator and address only when address exists - Add isaDeliveryDownload icon for download order type - Remove unused OrderType import Related work items: #5453
This commit is contained in:
committed by
Nino Righi
parent
3bc6d47c31
commit
b0afc80a26
@@ -18,10 +18,13 @@
|
||||
role="region"
|
||||
aria-label="Destination information">
|
||||
@if (name() || address()) {
|
||||
<span data-what="recipient-name">{{ name() }}</span> |
|
||||
<shared-inline-address
|
||||
[address]="address()"
|
||||
data-what="destination-address"></shared-inline-address>
|
||||
<span data-what="recipient-name">{{ name() }}</span>
|
||||
@if (address()) {
|
||||
|
|
||||
<shared-inline-address
|
||||
[address]="address()"
|
||||
data-what="destination-address"></shared-inline-address>
|
||||
}
|
||||
} @else if (estimatedDelivery()) {
|
||||
<span data-what="estimated-delivery">
|
||||
@if (estimatedDelivery()!.stop) {
|
||||
|
||||
@@ -6,10 +6,11 @@ import {
|
||||
isaDeliveryVersand,
|
||||
isaDeliveryRuecklage2,
|
||||
isaDeliveryRuecklage1,
|
||||
isaDeliveryDownload,
|
||||
} from '@isa/icons';
|
||||
import { InlineAddressComponent } from '@isa/shared/address';
|
||||
import { logger } from '@isa/core/logging';
|
||||
import { OrderType, OrderTypeFeature } from '@isa/common/data-access';
|
||||
import { OrderTypeFeature } from '@isa/common/data-access';
|
||||
|
||||
export type Address = {
|
||||
apartment?: string;
|
||||
@@ -52,6 +53,7 @@ export type EstimatedDelivery = {
|
||||
isaDeliveryVersand,
|
||||
isaDeliveryRuecklage2,
|
||||
isaDeliveryRuecklage1,
|
||||
isaDeliveryDownload,
|
||||
}),
|
||||
],
|
||||
})
|
||||
@@ -83,11 +85,20 @@ export class OrderDestinationComponent {
|
||||
return 'isaDeliveryRuecklage1';
|
||||
}
|
||||
|
||||
if (OrderTypeFeature.Download === orderType) {
|
||||
return 'isaDeliveryDownload';
|
||||
}
|
||||
|
||||
return 'isaDeliveryVersand';
|
||||
});
|
||||
|
||||
name = computed(() => {
|
||||
const orderType = this.orderType();
|
||||
|
||||
if (OrderTypeFeature.Download === orderType) {
|
||||
return 'Hugendubel Digital';
|
||||
}
|
||||
|
||||
if (
|
||||
OrderTypeFeature.Delivery === orderType ||
|
||||
OrderTypeFeature.B2BShipping === orderType ||
|
||||
@@ -104,6 +115,10 @@ export class OrderDestinationComponent {
|
||||
address = computed(() => {
|
||||
const orderType = this.orderType();
|
||||
|
||||
if (OrderTypeFeature.Download === orderType) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (
|
||||
OrderTypeFeature.Delivery === orderType ||
|
||||
OrderTypeFeature.B2BShipping === orderType ||
|
||||
|
||||
Reference in New Issue
Block a user