Skip to content

Conversation

@nancynaluz
Copy link
Contributor

The current UX is to return the user with a popup when the data fails to load and there is a routeChangeError. This is a bit aggressive and confusing to the user.

I'm proposing to change this to a log and redirect to 404 as seen in the PR that was merged to master here: #198

Since the project is following the latest commit on discrete-delivery-and-payment, I'm proposing updating this branch specifically for the least amount of friction.

The current UX is to return the user with a popup when the data fails to load and there is a routeChangeError. This is a bit aggressive and confusing to the user. I'm proposing to change this to a log and redirect to 404 as seen in the PR that was merged to master here: sprangular#198

if paymentMethods.length == 0
alert 'Gateway is not configured in Spree...'
$log.info 'Gateway is not configured in Spree...'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to inject $log?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanielWright Damn, good catch there. Fixed: 5db92dc

@DanielWright
Copy link

👍 :shipit:

@nancynaluz
Copy link
Contributor Author

LGTM!

@DanielWright DanielWright merged commit ac76e42 into sprangular:discrete-delivery-and-payment Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants