-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add cancel button to variable name creation dialog #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1620,7 +1620,22 @@ | |||||||||
click: function () { | ||||||||||
addNewVariable(); | ||||||||||
} | ||||||||||
}, | ||||||||||
|
||||||||||
}, | ||||||||||
{ | ||||||||||
buttonText: 'Cancel', | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using a more descriptive button text. The button text 'Cancel' is clear, but it might be more user-friendly to use a more descriptive text like 'Cancel Changes' or 'Discard'. This can help users understand the action better.
Suggested change
|
||||||||||
color: { | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using a centralized color palette. Instead of hardcoding the color values here, consider using a centralized color palette or theme. This will make it easier to maintain and ensure consistency across the application.
Suggested change
|
||||||||||
base: '#E3E8EB', | ||||||||||
hover: '#C7D2D7', | ||||||||||
text: '#004849' | ||||||||||
}, | ||||||||||
handler: { | ||||||||||
click: function () { | ||||||||||
this.modal('hide'); | ||||||||||
Comment on lines
+1634
to
+1635
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of |
||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
}], | ||||||||||
handler: { | ||||||||||
close: function () { | ||||||||||
|
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.
The
addNewVariable
function is called without any arguments or context provided, which could potentially lead to issues if the function relies on specific arguments orthis
context. It's important to ensure that functions are called with the necessary context and parameters, especially in event handlers where the context might not be as expected. Consider verifying the definition ofaddNewVariable
to ensure it is being called correctly and, if necessary, adjust the call to provide the required context or parameters.