diff --git a/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html
new file mode 100644
index 00000000..d2d9b84b
--- /dev/null
+++ b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html
@@ -0,0 +1,3 @@
+
+ {{ fulfillment | json }}
+
diff --git a/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.ts b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.ts
index e70b7541..04acc93a 100644
--- a/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.ts
+++ b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.ts
@@ -4,12 +4,7 @@ import { IFulfillment } from '@console-core/types';
@Component({
selector: 'app-module-fulfillment-view-details',
- template: `
-
- {{ fulfillment | json }}
-
- `,
+ templateUrl: './fulfillment-view-details.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FulfillmentViewDetailsComponent {
diff --git a/packages/modules/fulfillment/src/lib/components/template/fulfillment-template.component.html b/packages/modules/fulfillment/src/lib/components/template/fulfillment-template.component.html
index eb68ce3d..12599009 100644
--- a/packages/modules/fulfillment/src/lib/components/template/fulfillment-template.component.html
+++ b/packages/modules/fulfillment/src/lib/components/template/fulfillment-template.component.html
@@ -8,6 +8,7 @@
[triggerRead]="triggerRead"
[triggerSelectId]="triggerSelectId"
[triggerRemove]="triggerRemove"
+ [triggerSubmitFulfillment]="triggerSubmitFulfillment"
>
(null);
+ readonly triggerSubmitFulfillment$ = this.triggerSubmitFulfillment
+ .asObservable()
+ .pipe(
+ tap((id) => {
+ if (id === null) {
+ return;
+ }
+
+ // this.orderFacade.createFulfilment(id);
+ })
+ );
+
readonly triggerRead = new BehaviorSubject(null);
readonly triggerRead$ = this.triggerRead
.asObservable()
diff --git a/packages/modules/ui/src/lib/components/organisms/crud/crud-main.component.html b/packages/modules/ui/src/lib/components/organisms/crud/crud-main.component.html
index 52e928fd..6ee9691f 100644
--- a/packages/modules/ui/src/lib/components/organisms/crud/crud-main.component.html
+++ b/packages/modules/ui/src/lib/components/organisms/crud/crud-main.component.html
@@ -123,6 +123,20 @@
+
+