Skip to content

Commit

Permalink
order templates update to angular 9 - probably not intended changes f…
Browse files Browse the repository at this point in the history
…rom false additional merge - should be ommited?
  • Loading branch information
shauke committed May 26, 2020
1 parent f890358 commit 186153b
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<wt-lazy
*ishFeature="'orderTemplates'"
[location]="componentLocation"
[inputs]="{ products: products, class: class }"
></wt-lazy>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';

import { Product } from 'ish-core/models/product/product.model';

@Component({
selector: 'ish-lazy-create-order-template',
templateUrl: './lazy-create-order-template.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
// tslint:disable-next-line:component-creation-test
export class LazyCreateOrderTemplateComponent {
@Input() products: Product[];
@Input() class?: string;
componentLocation = {
moduleId: 'ish-extensions-order-templates',
selector: 'ish-basket-create-order-template',
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<wt-lazy
*ishFeature="'orderTemplates'"
[location]="componentLocation"
[inputs]="{ product: product, displayType: displayType, quantity: quantity, class: class }"
></wt-lazy>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';

import { Product } from 'ish-core/models/product/product.model';

@Component({
selector: 'ish-lazy-product-add-to-order-template',
templateUrl: './lazy-product-add-to-order-template.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
// tslint:disable-next-line:component-creation-test
export class LazyProductAddToOrderTemplateComponent {
@Input() product: Product;
@Input() displayType?: string;
@Input() quantity: number;
@Input() class?: string;
componentLocation = {
moduleId: 'ish-extensions-order-templates',
selector: 'ish-product-add-to-order-template',
};
}
1 change: 1 addition & 0 deletions src/app/shell/shell.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const exportedComponents = [
NgbCollapseModule,
NgbDropdownModule,
NgbModalModule,
OrderTemplatesExportsModule,
PipesModule.forRoot(),
RouterModule,
TranslateModule,
Expand Down

0 comments on commit 186153b

Please sign in to comment.