-
Notifications
You must be signed in to change notification settings - Fork 263
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
Improve legend error #1758
Improve legend error #1758
Conversation
this.$el.hide(); | ||
} | ||
this.model.isVisible() | ||
? this.$el.show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or this.$el.toggle(this.model.isVisible())
but I prefer the way you implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nobuti comment is the winner, IMHO 💃 .
|
||
var placeholder = this._getPlaceholderHTML(); | ||
|
||
var error = this.model.isError() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no loading state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a fail 😓 let me change it
Could we prepare it for the acceptance? I guess we will need a builder branch, right? |
Builder branch created! |
Deployed to |
Tested and working 👌 , merging guys! |
Related to: #1715
The goal was to add an error message related to limits. After some research we realized we can't have limits errors here since the legends come from
viz.json
, it could only fail when instantiating the map or when parsing CartoCSS, and we're already covered.The only change introduced by this PR is changing the
No data available
styles and refactor thelegend-view-base.js
.Acceptance
To show the "Something went wrong" text:
To show the "No data available" text: