diff --git a/addon/controllers/inventory/expired-stock.js b/addon/controllers/inventory/expired-stock.js index 4fac5c2f..02b54318 100644 --- a/addon/controllers/inventory/expired-stock.js +++ b/addon/controllers/inventory/expired-stock.js @@ -262,7 +262,7 @@ export default class InventoryExpiredStockController extends Controller { * @void */ @action viewInventory(inventory) { - return this.transitionToRoute('inventory.index.details', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory); } /** @@ -272,11 +272,11 @@ export default class InventoryExpiredStockController extends Controller { * @void */ @action createInventory() { - return this.transitionToRoute('inventory.index.new'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new'); } @action makeStockAdjustment() { - return this.transitionToRoute('inventory.index.new-stock-adjustment'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new-stock-adjustment'); } /** @@ -287,6 +287,6 @@ export default class InventoryExpiredStockController extends Controller { * @void */ @action async editInventory(inventory) { - return this.transitionToRoute('inventory.index.edit', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.edit', inventory); } } diff --git a/addon/controllers/inventory/index.js b/addon/controllers/inventory/index.js index 306c7698..1eb4582c 100644 --- a/addon/controllers/inventory/index.js +++ b/addon/controllers/inventory/index.js @@ -270,7 +270,7 @@ export default class InventoryIndexController extends Controller { * @void */ @action viewInventory(inventory) { - return this.transitionToRoute('inventory.index.details', inventory.public_id); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory.public_id); } /** @@ -280,11 +280,11 @@ export default class InventoryIndexController extends Controller { * @void */ @action createInventory() { - return this.transitionToRoute('inventory.index.new'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new'); } @action makeStockAdjustment() { - return this.transitionToRoute('inventory.index.new-stock-adjustment'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new-stock-adjustment'); } /** @@ -295,6 +295,6 @@ export default class InventoryIndexController extends Controller { * @void */ @action async editInventory(inventory) { - return this.transitionToRoute('inventory.index.edit', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.edit', inventory); } } diff --git a/addon/controllers/inventory/index/details.js b/addon/controllers/inventory/index/details.js index c2365709..51f75a15 100644 --- a/addon/controllers/inventory/index/details.js +++ b/addon/controllers/inventory/index/details.js @@ -30,7 +30,7 @@ export default class InventoryIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); } /** @@ -42,7 +42,7 @@ export default class InventoryIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action onEdit(inventory) { - return this.transitionToRoute('inventory.index.edit', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.edit', inventory); } /** diff --git a/addon/controllers/inventory/index/edit.js b/addon/controllers/inventory/index/edit.js index 44ccc2ae..8d6f7442 100644 --- a/addon/controllers/inventory/index/edit.js +++ b/addon/controllers/inventory/index/edit.js @@ -36,12 +36,12 @@ export default class InventoryIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(inventory, { confirm: () => { inventory.rollbackAttributes(); - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); }, }); } - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); } /** @@ -67,7 +67,7 @@ export default class InventoryIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(inventory); } - return this.transitionToRoute('inventory.index.details', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory); } /** @@ -83,7 +83,7 @@ export default class InventoryIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('inventory.index.details', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory); } /** @@ -102,7 +102,7 @@ export default class InventoryIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { inventory.rollbackAttributes(); - return this.transitionToRoute('inventory.index.details', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory); }, ...options, }); diff --git a/addon/controllers/inventory/index/new-stock-adjustment.js b/addon/controllers/inventory/index/new-stock-adjustment.js index 00c01128..eae6ca95 100644 --- a/addon/controllers/inventory/index/new-stock-adjustment.js +++ b/addon/controllers/inventory/index/new-stock-adjustment.js @@ -56,7 +56,7 @@ export default class InventoryIndexNewStockAdjustmentController extends Controll * @memberof InventoryIndexNewStockAdjustmentController */ @action transitionBack() { - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); } /** @@ -72,7 +72,7 @@ export default class InventoryIndexNewStockAdjustmentController extends Controll } this.hostRouter.refresh(); - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); } /** diff --git a/addon/controllers/inventory/index/new.js b/addon/controllers/inventory/index/new.js index 5a4c1a80..d4f9195a 100644 --- a/addon/controllers/inventory/index/new.js +++ b/addon/controllers/inventory/index/new.js @@ -60,7 +60,7 @@ export default class InventoryIndexNewController extends Controller { * @memberof InventoryIndexNewController */ @action transitionBack() { - return this.transitionToRoute('inventory.index'); + return this.hostRouter.transitionTo('console.pallet.inventory.index'); } /** @@ -76,7 +76,7 @@ export default class InventoryIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('inventory.index.details', inventory).then(() => { + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory).then(() => { this.resetForm(); }); } diff --git a/addon/controllers/inventory/low-stock.js b/addon/controllers/inventory/low-stock.js index bd5a2d0a..cfce844d 100644 --- a/addon/controllers/inventory/low-stock.js +++ b/addon/controllers/inventory/low-stock.js @@ -261,7 +261,7 @@ export default class InventoryLowStockController extends Controller { * @void */ @action viewInventory(inventory) { - return this.transitionToRoute('inventory.index.details', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.details', inventory); } /** @@ -271,11 +271,11 @@ export default class InventoryLowStockController extends Controller { * @void */ @action createInventory() { - return this.transitionToRoute('inventory.index.new'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new'); } @action makeStockAdjustment() { - return this.transitionToRoute('inventory.index.new-stock-adjustment'); + return this.hostRouter.transitionTo('console.pallet.inventory.index.new-stock-adjustment'); } /** @@ -286,6 +286,6 @@ export default class InventoryLowStockController extends Controller { * @void */ @action async editInventory(inventory) { - return this.transitionToRoute('inventory.index.edit', inventory); + return this.hostRouter.transitionTo('console.pallet.inventory.index.edit', inventory); } } diff --git a/addon/controllers/products/index.js b/addon/controllers/products/index.js index f39c1a9b..cc4a08dd 100644 --- a/addon/controllers/products/index.js +++ b/addon/controllers/products/index.js @@ -336,7 +336,7 @@ export default class ProductsIndexController extends Controller { * @void */ @action viewProduct(product) { - return this.transitionToRoute('products.index.details', product); + return this.hostRouter.transitionTo('console.pallet.products.index.details', product); } /** @@ -345,7 +345,7 @@ export default class ProductsIndexController extends Controller { * @void */ @action createProduct() { - return this.transitionToRoute('products.index.new'); + return this.hostRouter.transitionTo('console.pallet.products.index.new'); } /** * Edit a `product` details @@ -355,7 +355,7 @@ export default class ProductsIndexController extends Controller { * @void */ @action async editProduct(product) { - return this.transitionToRoute('products.index.edit', product); + return this.hostRouter.transitionTo('console.pallet.products.index.edit', product); } /** diff --git a/addon/controllers/products/index/details.js b/addon/controllers/products/index/details.js index fb5330e9..1200e043 100644 --- a/addon/controllers/products/index/details.js +++ b/addon/controllers/products/index/details.js @@ -27,7 +27,7 @@ export default class ProductsIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('products.index'); + return this.hostRouter.transitionTo('console.pallet.products.index'); } /** @@ -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('products.index.edit', product); + return this.hostRouter.transitionTo('console.pallet.products.index.edit', product); } /** diff --git a/addon/controllers/products/index/edit.js b/addon/controllers/products/index/edit.js index 21bb7376..55dcaf61 100644 --- a/addon/controllers/products/index/edit.js +++ b/addon/controllers/products/index/edit.js @@ -37,12 +37,12 @@ export default class ProductsIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(product, { confirm: () => { product.rollbackAttributes(); - return this.transitionToRoute('products.index'); + return this.hostRouter.transitionTo('console.pallet.products.index'); }, }); } - return this.transitionToRoute('products.index'); + return this.hostRouter.transitionTo('console.pallet.products.index'); } /** @@ -68,7 +68,7 @@ export default class ProductsIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(product); } - return this.transitionToRoute('products.index.details', product); + return this.hostRouter.transitionTo('console.pallet.products.index.details', product); } /** @@ -84,7 +84,7 @@ export default class ProductsIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('products.index.details', product); + return this.hostRouter.transitionTo('console.pallet.products.index.details', product); } /** @@ -103,7 +103,7 @@ export default class ProductsIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { product.rollbackAttributes(); - return this.transitionToRoute('products.index.details', product); + return this.hostRouter.transitionTo('console.pallet.products.index.details', product); }, ...options, }); diff --git a/addon/controllers/products/index/new.js b/addon/controllers/products/index/new.js index e131a91c..923b18f0 100644 --- a/addon/controllers/products/index/new.js +++ b/addon/controllers/products/index/new.js @@ -56,7 +56,7 @@ export default class ProductsIndexNewController extends Controller { * @memberof ProductsIndexNewController */ @action transitionBack() { - return this.transitionToRoute('products.index'); + return this.hostRouter.transitionTo('console.pallet.products.index'); } /** @@ -72,7 +72,7 @@ export default class ProductsIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('products.index.details', product).then(() => { + return this.hostRouter.transitionTo('console.pallet.products.index.details', product).then(() => { this.resetForm(); }); } diff --git a/addon/controllers/purchase-orders/index.js b/addon/controllers/purchase-orders/index.js index 6a8184bc..17fccf79 100644 --- a/addon/controllers/purchase-orders/index.js +++ b/addon/controllers/purchase-orders/index.js @@ -230,7 +230,7 @@ export default class PurchaseOrdersIndexController extends Controller { * @void */ @action viewPurchaseOrder(purchaseOrder) { - this.transitionToRoute('purchase-orders.index.details', purchaseOrder); + this.hostRouter.transitionTo('console.pallet.purchase-orders.index.details', purchaseOrder); } /** @@ -239,7 +239,7 @@ export default class PurchaseOrdersIndexController extends Controller { * @void */ @action createPurchaseOrder() { - this.transitionToRoute('purchase-orders.index.new'); + this.hostRouter.transitionTo('console.pallet.purchase-orders.index.new'); } /** @@ -249,7 +249,7 @@ export default class PurchaseOrdersIndexController extends Controller { * @void */ @action editPurchaseOrder(purchaseOrder) { - this.transitionToRoute('purchase-orders.index.edit', purchaseOrder); + this.hostRouter.transitionTo('console.pallet.purchase-orders.index.edit', purchaseOrder); } /** diff --git a/addon/controllers/purchase-orders/index/details.js b/addon/controllers/purchase-orders/index/details.js index 7fef3458..71f95a62 100644 --- a/addon/controllers/purchase-orders/index/details.js +++ b/addon/controllers/purchase-orders/index/details.js @@ -30,7 +30,7 @@ export default class PurchaseOrdersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('purchase-orders.index'); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index'); } /** @@ -42,7 +42,7 @@ export default class PurchaseOrdersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action onEdit(purchaseOrder) { - return this.transitionToRoute('purchase-orders.index.edit', purchaseOrder); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index.edit', purchaseOrder); } /** diff --git a/addon/controllers/purchase-orders/index/edit.js b/addon/controllers/purchase-orders/index/edit.js index 584e80c2..1a112a2c 100644 --- a/addon/controllers/purchase-orders/index/edit.js +++ b/addon/controllers/purchase-orders/index/edit.js @@ -36,12 +36,12 @@ export default class PurchaseOrdersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(purchaseOrder, { confirm: () => { purchaseOrder.rollbackAttributes(); - return this.transitionToRoute('purchase-orders.index'); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index'); }, }); } - return this.transitionToRoute('purchase-orders.index'); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index'); } /** @@ -67,7 +67,7 @@ export default class PurchaseOrdersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(purchaseOrder); } - return this.transitionToRoute('purchase-orders.index.details', purchaseOrder); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index.details', purchaseOrder); } /** @@ -83,7 +83,7 @@ export default class PurchaseOrdersIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('purchase-orders.details', purchaseOrder); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.details', purchaseOrder); } /** @@ -102,7 +102,7 @@ export default class PurchaseOrdersIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { purchaseOrder.rollbackAttributes(); - return this.transitionToRoute('purchase-orders.index.details', purchaseOrder); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index.details', purchaseOrder); }, ...options, }); diff --git a/addon/controllers/purchase-orders/index/new.js b/addon/controllers/purchase-orders/index/new.js index 0e245694..ce517957 100644 --- a/addon/controllers/purchase-orders/index/new.js +++ b/addon/controllers/purchase-orders/index/new.js @@ -63,7 +63,7 @@ export default class PurchaseOrdersIndexNewController extends Controller { * @memberof PurchaseOrdersIndexNewController */ @action transitionBack() { - return this.transitionToRoute('purchase-orders.index'); + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index'); } /** @@ -79,7 +79,7 @@ export default class PurchaseOrdersIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('purchase-orders.index.details', purchaseOrder).then(() => { + return this.hostRouter.transitionTo('console.pallet.purchase-orders.index.details', purchaseOrder).then(() => { this.resetForm(); }); } diff --git a/addon/controllers/sales-orders/index.js b/addon/controllers/sales-orders/index.js index 9394614c..3acab4ca 100644 --- a/addon/controllers/sales-orders/index.js +++ b/addon/controllers/sales-orders/index.js @@ -241,7 +241,7 @@ export default class SalesOrdersIndexController extends Controller { * @void */ @action viewSalesOrder(salesOrder) { - this.transitionToRoute('sales-orders.index.details', salesOrder); + this.hostRouter.transitionTo('console.pallet.sales-orders.index.details', salesOrder); } /** @@ -250,7 +250,7 @@ export default class SalesOrdersIndexController extends Controller { * @void */ @action createSalesOrder() { - this.transitionToRoute('sales-orders.index.new'); + this.hostRouter.transitionTo('console.pallet.sales-orders.index.new'); } /** @@ -260,7 +260,7 @@ export default class SalesOrdersIndexController extends Controller { * @void */ @action editSalesOrder(salesOrder) { - this.transitionToRoute('sales-orders.index.edit', salesOrder); + this.hostRouter.transitionTo('console.pallet.sales-orders.index.edit', salesOrder); } /** diff --git a/addon/controllers/sales-orders/index/details.js b/addon/controllers/sales-orders/index/details.js index adf58af4..7de79e83 100644 --- a/addon/controllers/sales-orders/index/details.js +++ b/addon/controllers/sales-orders/index/details.js @@ -30,7 +30,7 @@ export default class SalesOrdersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('sales-orders.index'); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index'); } /** @@ -42,7 +42,7 @@ export default class SalesOrdersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action onEdit(salesOrder) { - return this.transitionToRoute('sales-orders.index.edit', salesOrder); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index.edit', salesOrder); } /** diff --git a/addon/controllers/sales-orders/index/edit.js b/addon/controllers/sales-orders/index/edit.js index feea5f33..194305be 100644 --- a/addon/controllers/sales-orders/index/edit.js +++ b/addon/controllers/sales-orders/index/edit.js @@ -36,12 +36,12 @@ export default class SalesOrdersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(salesOrder, { confirm: () => { salesOrder.rollbackAttributes(); - return this.transitionToRoute('sales-orders.index'); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index'); }, }); } - return this.transitionToRoute('sales-orders.index'); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index'); } /** @@ -67,7 +67,7 @@ export default class SalesOrdersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(salesOrder); } - return this.transitionToRoute('sales-orders.index.details', salesOrder); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index.details', salesOrder); } /** @@ -83,7 +83,7 @@ export default class SalesOrdersIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('sales-orders.index.details', salesOrder); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index.details', salesOrder); } /** @@ -102,7 +102,7 @@ export default class SalesOrdersIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { salesOrder.rollbackAttributes(); - return this.transitionToRoute('sales-orders.index.details', salesOrder); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index.details', salesOrder); }, ...options, }); diff --git a/addon/controllers/sales-orders/index/new.js b/addon/controllers/sales-orders/index/new.js index 1c86b09b..4b506cfa 100644 --- a/addon/controllers/sales-orders/index/new.js +++ b/addon/controllers/sales-orders/index/new.js @@ -63,7 +63,7 @@ export default class SalesOrdersIndexNewController extends Controller { * @memberof SalesOrdersIndexNewController */ @action transitionBack() { - return this.transitionToRoute('sales-orders.index'); + return this.hostRouter.transitionTo('console.pallet.sales-orders.index'); } /** @@ -79,7 +79,7 @@ export default class SalesOrdersIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('sales-orders.index.details', salesOrder).then(() => { + return this.hostRouter.transitionTo('console.pallet.sales-orders.index.details', salesOrder).then(() => { this.resetForm(); }); } diff --git a/addon/controllers/suppliers/index.js b/addon/controllers/suppliers/index.js index c714a60b..8b85c83d 100644 --- a/addon/controllers/suppliers/index.js +++ b/addon/controllers/suppliers/index.js @@ -374,7 +374,7 @@ export default class SuppliersIndexController extends Controller { * @void */ @action viewSupplier(supplier) { - return this.transitionToRoute('suppliers.index.details', supplier); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.details', supplier); } /** @@ -383,7 +383,7 @@ export default class SuppliersIndexController extends Controller { * @void */ @action async createSupplier() { - return this.transitionToRoute('suppliers.index.new'); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.new'); } /** @@ -393,7 +393,7 @@ export default class SuppliersIndexController extends Controller { * @void */ @action editSupplier(supplier) { - return this.transitionToRoute('suppliers.index.edit', supplier); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.edit', supplier); } /** diff --git a/addon/controllers/suppliers/index/details.js b/addon/controllers/suppliers/index/details.js index c9f72878..e2c342e3 100644 --- a/addon/controllers/suppliers/index/details.js +++ b/addon/controllers/suppliers/index/details.js @@ -27,7 +27,7 @@ export default class SuppliersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('suppliers.index'); + return this.hostRouter.transitionTo('console.pallet.suppliers.index'); } /** @@ -39,7 +39,7 @@ export default class SuppliersIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action onEdit(supplier) { - return this.transitionToRoute('suppliers.index.edit', supplier); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.edit', supplier); } /** diff --git a/addon/controllers/suppliers/index/edit.js b/addon/controllers/suppliers/index/edit.js index 5ca4a494..7d8fda07 100644 --- a/addon/controllers/suppliers/index/edit.js +++ b/addon/controllers/suppliers/index/edit.js @@ -36,12 +36,12 @@ export default class SuppliersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(supplier, { confirm: () => { supplier.rollbackAttributes(); - return this.transitionToRoute('supplier.index'); + return this.hostRouter.transitionTo('console.pallet.supplier.index'); }, }); } - return this.transitionToRoute('supplier.index'); + return this.hostRouter.transitionTo('console.pallet.supplier.index'); } /** @@ -67,7 +67,7 @@ export default class SuppliersIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(supplier); } - return this.transitionToRoute('suppliers.index.details', supplier); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.details', supplier); } /** @@ -83,7 +83,7 @@ export default class SuppliersIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('suppliers.index.details', supplier); + return this.hostRouter.transitionTo('console.pallet.suppliers.index.details', supplier); } /** @@ -102,7 +102,7 @@ export default class SuppliersIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { supplier.rollbackAttributes(); - return this.transitionToRoute('supplier.index.details', supplier); + return this.hostRouter.transitionTo('console.pallet.supplier.index.details', supplier); }, ...options, }); diff --git a/addon/controllers/suppliers/index/new.js b/addon/controllers/suppliers/index/new.js index 6f6090cc..1fd74409 100644 --- a/addon/controllers/suppliers/index/new.js +++ b/addon/controllers/suppliers/index/new.js @@ -56,7 +56,7 @@ export default class SuppliersIndexNewController extends Controller { * @memberof ManagementSupplierIndexNewController */ @action transitionBack() { - return this.transitionToRoute('suppliers.index'); + return this.hostRouter.transitionTo('console.pallet.suppliers.index'); } /** @@ -72,7 +72,7 @@ export default class SuppliersIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('suppliers.index.details', supplier).then(() => { + return this.hostRouter.transitionTo('console.pallet.suppliers.index.details', supplier).then(() => { this.resetForm(); }); } diff --git a/addon/controllers/warehouses/index.js b/addon/controllers/warehouses/index.js index 41cb667a..36e185ee 100644 --- a/addon/controllers/warehouses/index.js +++ b/addon/controllers/warehouses/index.js @@ -332,7 +332,7 @@ export default class WarehousesIndexController extends Controller { * @void */ @action viewWarehouse(warehouse) { - this.transitionToRoute('warehouses.index.details', warehouse); + this.hostRouter.transitionTo('console.pallet.warehouses.index.details', warehouse); } /** @@ -342,7 +342,7 @@ export default class WarehousesIndexController extends Controller { * @void */ @action createWarehouse() { - this.transitionToRoute('warehouses.index.new'); + this.hostRouter.transitionTo('console.pallet.warehouses.index.new'); } /** @@ -353,7 +353,7 @@ export default class WarehousesIndexController extends Controller { * @void */ @action async editWarehouse(warehouse) { - this.transitionToRoute('warehouses.index.edit', warehouse); + this.hostRouter.transitionTo('console.pallet.warehouses.index.edit', warehouse); } /** diff --git a/addon/controllers/warehouses/index/details.js b/addon/controllers/warehouses/index/details.js index 5fdbf829..ea70ee52 100644 --- a/addon/controllers/warehouses/index/details.js +++ b/addon/controllers/warehouses/index/details.js @@ -27,7 +27,7 @@ export default class WarehousesIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action transitionBack() { - return this.transitionToRoute('warehouses.index'); + return this.hostRouter.transitionTo('console.pallet.warehouses.index'); } /** @@ -39,7 +39,7 @@ export default class WarehousesIndexDetailsController extends Controller { * @returns {Transition} The transition object representing the route change. */ @action onEdit(warehouse) { - return this.transitionToRoute('warehouses.index.edit', warehouse); + return this.hostRouter.transitionTo('console.pallet.warehouses.index.edit', warehouse); } /** diff --git a/addon/controllers/warehouses/index/edit.js b/addon/controllers/warehouses/index/edit.js index 2f3e602b..71b9decf 100644 --- a/addon/controllers/warehouses/index/edit.js +++ b/addon/controllers/warehouses/index/edit.js @@ -37,12 +37,12 @@ export default class WarehousesIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(warehouse, { confirm: () => { warehouse.rollbackAttributes(); - return this.transitionToRoute('management.warehouses.index'); + return this.hostRouter.transitionTo('console.pallet.management.warehouses.index'); }, }); } - return this.transitionToRoute('warehouses.index'); + return this.hostRouter.transitionTo('console.pallet.warehouses.index'); } /** @@ -68,7 +68,7 @@ export default class WarehousesIndexEditController extends Controller { return this.confirmContinueWithUnsavedChanges(warehouse); } - return this.transitionToRoute('warehouses.index.details', warehouse); + return this.hostRouter.transitionTo('console.pallet.warehouses.index.details', warehouse); } /** @@ -84,7 +84,7 @@ export default class WarehousesIndexEditController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('warehouses.index.details', warehouse); + return this.hostRouter.transitionTo('console.pallet.warehouses.index.details', warehouse); } /** @@ -103,7 +103,7 @@ export default class WarehousesIndexEditController extends Controller { acceptButtonText: 'Continue without saving', confirm: () => { warehouse.rollbackAttributes(); - return this.transitionToRoute('warehouses.index.details', warehouse); + return this.hostRouter.transitionTo('console.pallet.warehouses.index.details', warehouse); }, ...options, }); diff --git a/addon/controllers/warehouses/index/new.js b/addon/controllers/warehouses/index/new.js index af941fa7..ddbf45c3 100644 --- a/addon/controllers/warehouses/index/new.js +++ b/addon/controllers/warehouses/index/new.js @@ -60,7 +60,7 @@ export default class WarehousesIndexNewController extends Controller { * @memberof WarehousesIndexNewController */ @action transitionBack() { - return this.transitionToRoute('warehouses.index'); + return this.hostRouter.transitionTo('console.pallet.warehouses.index'); } /** @@ -76,7 +76,7 @@ export default class WarehousesIndexNewController extends Controller { } this.hostRouter.refresh(); - return this.transitionToRoute('warehouses.index.details', warehouse).then(() => { + return this.hostRouter.transitionTo('console.pallet.warehouses.index.details', warehouse).then(() => { this.resetForm(); }); } diff --git a/composer.json b/composer.json index f3d7c252..d61fad1b 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ ], "require": { "php": "^8.0", - "fleetbase/core-api": "^1.5.9", - "fleetbase/fleetops-api": "^0.5.8", + "fleetbase/core-api": "*", + "fleetbase/fleetops-api": "*", "php-http/guzzle7-adapter": "^1.0", "psr/http-factory-implementation": "*" }, @@ -37,12 +37,6 @@ "phpstan/phpstan": "^1.10.38", "symfony/var-dumper": "^5.4.29" }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/fleetbase/laravel-model-caching" - } - ], "autoload": { "psr-4": { "Fleetbase\\Pallet\\": "server/src/", diff --git a/package.json b/package.json index 9b7f7a95..4111a71e 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,9 @@ "publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish" }, "dependencies": { - "@fleetbase/ember-core": "^0.2.19", - "@fleetbase/ember-ui": "^0.2.32", - "@fleetbase/fleetops-data": "^0.1.18", + "@fleetbase/ember-core": "latest", + "@fleetbase/ember-ui": "latest", + "@fleetbase/fleetops-data": "latest", "@fleetbase/leaflet-routing-machine": "^3.2.16", "@fortawesome/ember-fontawesome": "^2.0.0", "@fortawesome/fontawesome-svg-core": "6.4.0",