Skip to content

Commit

Permalink
fixed product details controller
Browse files Browse the repository at this point in the history
  • Loading branch information
TemuulenBM committed Nov 10, 2023
1 parent 1870085 commit 8352561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/controllers/products/index/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export default class ProductsIndexDetailsController extends Controller {
@tracked queryParams = ['view'];

/**
* Transitions back to the "management.products.index" route.
* Transitions back to the "products.index" route.
*
* @method
* @action
* @returns {Transition} The transition object representing the route change.
*/
@action transitionBack() {
return this.transitionToRoute('management.products.index');
return this.transitionToRoute('products.index');
}

/**
Expand All @@ -39,7 +39,7 @@ export default class ProductsIndexDetailsController extends Controller {
* @returns {Transition} The transition object representing the route change.
*/
@action onEdit(product) {
return this.transitionToRoute('management.products.index.edit', product);
return this.transitionToRoute('products.index.edit', product);
}

/**
Expand Down

0 comments on commit 8352561

Please sign in to comment.