diff --git a/addon/controllers/application.js b/addon/controllers/application.js index 4fbb1c1..cc67f40 100644 --- a/addon/controllers/application.js +++ b/addon/controllers/application.js @@ -12,7 +12,7 @@ export default class ApplicationController extends Controller { @action createNewStorefront() { return this.storefront.createNewStorefront({ onSuccess: () => { - const loader = this.loader.show(`Switching to newly created store...`); + const loader = this.loader.show({ loadingMessage: `Switching to newly created store...` }); this.hostRouter.refresh().then(() => { this.notifyPropertyChange('activeStore'); @@ -23,7 +23,7 @@ export default class ApplicationController extends Controller { } @action switchActiveStore(store) { - const loader = this.loader.show(`Switching Storefront to ${store.name}...`); + const loader = this.loader.show({ loadingMessage: `Switching Storefront to ${store.name}...` }); this.storefront.setActiveStorefront(store); this.hostRouter.refresh().then(() => { this.notifyPropertyChange('activeStore'); diff --git a/addon/controllers/products/index/category/new.js b/addon/controllers/products/index/category/new.js index 4b3b597..62acf68 100644 --- a/addon/controllers/products/index/category/new.js +++ b/addon/controllers/products/index/category/new.js @@ -47,7 +47,7 @@ export default class ProductsIndexCategoryNewController extends Controller { @action saveProduct() { const { category } = this.productsIndexCategoryController; - const loader = this.loader.showLoader('body', 'Creating new product...'); + const loader = this.loader.showLoader('body', { loadingMessage: 'Creating new product...' }); this.isSaving = true; if (category) { diff --git a/addon/routes/application.js b/addon/routes/application.js index dab57ba..a1e604a 100644 --- a/addon/routes/application.js +++ b/addon/routes/application.js @@ -12,7 +12,7 @@ export default class ApplicationRoute extends Route { @service storefront; @action loading(transition) { - this.loader.showOnInitialTransition(transition, 'section.next-view-section', 'Loading storefront...'); + this.loader.showOnInitialTransition(transition, 'section.next-view-section', { loadingMessage: 'Loading storefront...' }); } @action willTransition() { diff --git a/addon/routes/products/index/category.js b/addon/routes/products/index/category.js index 7a13a35..2c89bf1 100644 --- a/addon/routes/products/index/category.js +++ b/addon/routes/products/index/category.js @@ -27,7 +27,7 @@ export default class ProductsIndexCategoryRoute extends Route { } loading(transition) { - this.loader.showOnInitialTransition(transition, 'section.next-view-section', 'Loading products...'); + this.loader.showOnInitialTransition(transition, 'section.next-view-section', { loadingMessage: 'Loading products...' }); } model({ slug, ...params }) {