diff --git a/src/app/modules/commercecontent/pages/commercecontents/commercecontents.component.ts b/src/app/modules/commercecontent/pages/commercecontents/commercecontents.component.ts index b3b44b8..f398870 100644 --- a/src/app/modules/commercecontent/pages/commercecontents/commercecontents.component.ts +++ b/src/app/modules/commercecontent/pages/commercecontents/commercecontents.component.ts @@ -16,8 +16,8 @@ import { Router } from '@angular/router'; export class CommercecontentsComponent { columns = ['name', 'description']; - commerce = this._router.url.includes('/commercebrands/') - ? this._router.url.replace('/commercebrands/', '') + commerce = this._router.url.includes('/commercecontents/') + ? this._router.url.replace('/commercecontents/', '') : ''; form: FormInterface = this._form.getForm('commercecontent', commercecontentFormComponents); diff --git a/src/app/modules/commerceproduct/pages/commerceproducts/commerceproducts.component.ts b/src/app/modules/commerceproduct/pages/commerceproducts/commerceproducts.component.ts index dea64e8..47f3bfc 100644 --- a/src/app/modules/commerceproduct/pages/commerceproducts/commerceproducts.component.ts +++ b/src/app/modules/commerceproduct/pages/commerceproducts/commerceproducts.component.ts @@ -64,7 +64,7 @@ export class CommerceproductsComponent { { icon: '1x_mobiledata', hrefFunc: (doc: Commerceproduct): string => { - return '/commerceproductquantities/product' + doc._id; + return '/commerceproductquantities/product/' + doc._id; } }, { diff --git a/src/app/modules/commerceproductquantity/formcomponents/commerceproductquantity.formcomponents.ts b/src/app/modules/commerceproductquantity/formcomponents/commerceproductquantity.formcomponents.ts index b82bda4..c400320 100644 --- a/src/app/modules/commerceproductquantity/formcomponents/commerceproductquantity.formcomponents.ts +++ b/src/app/modules/commerceproductquantity/formcomponents/commerceproductquantity.formcomponents.ts @@ -30,6 +30,48 @@ export const commerceproductquantityFormComponents = { value: 'Description', } ] + }, + { + name: 'Text', + key: 'store', + fields: [ + { + name: 'Placeholder', + value: 'fill commerceproductquantity store', + }, + { + name: 'Label', + value: 'Store', + } + ] + }, + { + name: 'Text', + key: 'warehouse', + fields: [ + { + name: 'Placeholder', + value: 'fill commerceproductquantity warehouse', + }, + { + name: 'Label', + value: 'Warehouse', + } + ] + }, + { + name: 'Text', + key: 'product', + fields: [ + { + name: 'Placeholder', + value: 'fill commerceproductquantity product', + }, + { + name: 'Label', + value: 'Product', + } + ] } ] -} +};