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 d17bb38 commit bcb3676
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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/' + doc._id;
return '/commerceproductquantities/product' + doc._id;
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import { Route, Router } from '@angular/router';
export class CommerceproductquantitiesComponent {
columns = ['name', 'description'];

store = this._router.url.includes('/store/') ? this._router.url.split('/')[4] : '';
warehouse = this._router.url.includes('/warehouse/') ? this._router.url.split('/')[4] : '';
product = this._router.url.split('/')[3];
store = this._router.url.includes('/store/') ? this._router.url.split('/')[3] : '';
warehouse = this._router.url.includes('/warehouse/') ? this._router.url.split('/')[3] : '';
product = this._router.url.includes('/product/') ? this._router.url.split('/')[3] : '';

form: FormInterface = this._form.getForm('commerceproductquantity', commerceproductquantityFormComponents);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CommercestoresComponent {
{
icon: '1x_mobiledata',
hrefFunc: (doc: Commercestore): string => {
return '/commerceproductquantities/' + doc._id;
return '/commerceproductquantities/store/' + doc._id;
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CommercewarehousesComponent {
{
icon: '1x_mobiledata',
hrefFunc: (doc: Commercewarehouse): string => {
return '/commerceproductquantities/' + doc._id;
return '/commerceproductquantities/warehouse/' + doc._id;
}
},
{
Expand Down

0 comments on commit bcb3676

Please sign in to comment.