Skip to content

Commit

Permalink
small refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Aug 30, 2024
1 parent c3c4d98 commit 16bcc68
Show file tree
Hide file tree
Showing 7 changed files with 4,397 additions and 54 deletions.
5 changes: 4 additions & 1 deletion addon/controllers/products/index/category/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export default class ProductsIndexCategoryNewController extends BaseController {

try {
yield this.transitionToRoute('products.index.category', category.slug);
} catch (error) {}
} catch (error) {
this.notifications.serverError(error);
}

this.reset();
}

Expand Down
2 changes: 1 addition & 1 deletion addon/routes/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class ApplicationRoute extends Route {
}

beforeModel() {
if (this.abilities.cannot('storefront view extension')) {
if (this.abilities.cannot('storefront see extension')) {
this.notifications.warning(this.intl.t('common.unauthorized-access'));
return this.hostRouter.transitionTo('console');
}
Expand Down
2 changes: 1 addition & 1 deletion addon/services/storefront.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class StorefrontService extends Service.extend(Evented) {
declineButtonIcon: 'times',
declineButtonIconPrefix: 'fas',
store,
confirm: async (modal, done) => {
confirm: async (modal) => {
modal.startLoading();

try {
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
],
"require": {
"php": "^8.0",
"fleetbase/core-api": "^1.4.30",
"fleetbase/fleetops-api": "^0.5.4",
"fleetbase/core-api": "^1.5.3",
"fleetbase/fleetops-api": "^0.5.6",
"geocoder-php/google-maps-places-provider": "^1.4",
"laravel-notification-channels/apn": "^5.0",
"laravel-notification-channels/fcm": "^4.1",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
},
"dependencies": {
"@fleetbase/ember-core": "link:../ember-core",
"@fleetbase/ember-ui": "link:../ember-ui",
"@fleetbase/ember-core": "^0.2.17",
"@fleetbase/ember-ui": "^0.2.24",
"@fleetbase/fleetops-data": "^0.1.17",
"@babel/core": "^7.23.2",
"@fortawesome/ember-fontawesome": "^2.0.0",
Expand Down
Loading

0 comments on commit 16bcc68

Please sign in to comment.