-
Notifications
You must be signed in to change notification settings - Fork 650
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
Warn te user when deleting multiple analysis #14222
Conversation
9221002
to
299cea4
Compare
@@ -354,7 +353,9 @@ module.exports = CoreView.extend({ | |||
|
|||
_onDeleteClicked: function () { | |||
if (this._canDelete()) { | |||
this._deleteAnalysis(); | |||
this._analysisFormsCollection.first() !== this._formModel |
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.
Without context, I'm not getting the exact meaning of this._analysisFormsCollection.first() !== this._formModel
. Could we extract an explaining variable with that expression, so the delete / warning logic is clearer?
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.
Everything LGTM, just asked for a little clarification above
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.
You're right, I moved it to its own function, basically, it checks if the selected analysis node is the last one (which is the first in the collection because it's reversed)
LGTM! |
Related to: https://github.com/CartoDB/design/issues/1163
Description
This PR adds a warning when the user tries to delete an analysis node which is not the last one.
Image
Acceptance
With one analysis:
With multiple analysis:
cancel
removes the warning and doesn't delete the analysisdelete
deletes the analysisExtra
This PR also implements the new infobox styles:
When a layer is hidden:
When a legend has custom HTML:
When a popup has custom HTML:
When custom CartoCSS is applied:
When the user is over limits: