-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 part of #6482: button is disable until all requirements are fulfilled - fixed \o/ #7908
Conversation
…lish Question is disable untill all requirements are fulfilled
Hi, @discombobulateme. This pull request does not have a "CHANGELOG: ..." label as mentioned in the PR checkbox list. Please add this label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks! |
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.
Just one comment.
@@ -473,6 +474,12 @@ angular.module('oppia').directive('questionsList', [ | |||
} | |||
$uibModalInstance.close(); | |||
}; | |||
// Checking if Question contains all requirement to enable | |||
// Save and Publish Question | |||
$scope.toggleEnableButton = 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.
Rename the function to something like isSaveButtonDisabled()
.
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.
ok :)
Codecov Report
@@ Coverage Diff @@
## develop #7908 +/- ##
===========================================
- Coverage 83.98% 83.98% -<.01%
===========================================
Files 1131 1131
Lines 68085 68087 +2
Branches 3828 3828
===========================================
Hits 57180 57180
- Misses 9615 9617 +2
Partials 1290 1290
|
Corrections: changed function name as asked by @aks681 and inserted a simple tooltip for the button |
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.
Looks good thanks @discombobulateme !
Hi @kevinlee12 , should I make changes on this failures? Or thoes it has something to do with today's devlist post about automatic checking? Please let me know if I can do something :) |
@discombobulateme Yup, this is related to the email post, please follow the instructions from there. |
@discombobulateme can you please 1) pull from the latest develop 2) merge those changes into this branch and 3) push the changes? That should solve the Travis build issue, do not force push. If you run into any issues, please let us know, thanks! |
@kevinlee12 just done it, and had no issues |
Explanation
Checklist
python -m scripts.pre_commit_linter
andpython -m scripts.run_frontend_tests
.