Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: don't show warning when query string (parameters value) changes #1232

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

hokaccha
Copy link
Contributor

@hokaccha hokaccha commented Aug 9, 2016

This pull-request fixes #1174

@@ -58,7 +58,7 @@
}

$scope.$on('$locationChangeStart', function (event, next, current) {
if (next.split("#")[0] == current.split("#")[0]) {
if (next.split("?")[0] == current.split("?")[0]) {
Copy link
Member

Choose a reason for hiding this comment

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

We need the previous check (with the #) too, for cases when the user changes the current visualization and there are no parameters present (and hence no query string parameters).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review. fixed 7843d2e

@arikfr arikfr changed the title Don't show dialog when query string is changed Fix: don't show warning when query string (parameters value) changes Aug 10, 2016
@hokaccha hokaccha force-pushed the fix-confirm-dialog branch from c7ae2b8 to 7843d2e Compare August 10, 2016 12:43
@arikfr arikfr merged commit a411af2 into getredash:master Aug 10, 2016
@arikfr
Copy link
Member

arikfr commented Aug 10, 2016

Thanks!

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.

Changing a parameter value in the UI causes an alert() when you haven't saved the query
2 participants