Skip to content

Commit

Permalink
feat(fulfilment): link a fulfilment order to a fulfilment
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Oct 30, 2024
1 parent aa1ef6c commit 3a5beac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

<div class="row justify-content-between align-items-center">
<span>Fulfilment order</span>
<span>{{ fulfillment.references?.[0]?.instanceId }}</span>
<a
[routerLink]="orderRouter.view.getLink({ id: fulfillment.references?.[0]?.instanceId || '' })"
>{{ fulfillment.references?.[0]?.instanceId }}</a
>
</div>

<div class="row justify-content-between align-items-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';

import { ROUTER } from '@console-core/config';
import { IFulfillment } from '@console-core/types';

@Component({
Expand All @@ -9,4 +10,6 @@ import { IFulfillment } from '@console-core/types';
})
export class FulfillmentViewDetailsComponent {
@Input({ required: true }) fulfillment!: IFulfillment;

orderRouter = ROUTER.pages.main.children.orders.children;
}

0 comments on commit 3a5beac

Please sign in to comment.