Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiquickie committed Dec 2, 2024
1 parent bcb3676 commit 7b18d2e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class CommerceproductsComponent {
{
icon: '1x_mobiledata',
hrefFunc: (doc: Commerceproduct): string => {
return '/commerceproductquantities/product' + doc._id;
return '/commerceproductquantities/product/' + doc._id;
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
]
}
]
}
};

0 comments on commit 7b18d2e

Please sign in to comment.