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 part of #6482: button is disable until all requirements are fulfilled - fixed \o/ #7908

Merged
merged 6 commits into from
Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
function name corrected and tooltip added
  • Loading branch information
discombobulateme committed Nov 4, 2019
commit 022a2bbc3aa0150179eb63050f391421299f81ba
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ <h3>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" ng-click="cancel()"> Cancel </button>
<button class="btn btn-success protractor-test-save-question-button" ng-click="done()" ng-disabled="toggleEnableButton()"> Save and Publish Question </button>
<button title="To Save please add: interaction, hint and solution" class="btn btn-success protractor-test-save-question-button" ng-click="done()" ng-disabled="isSaveButtonDisabled()"> Save and Publish Question </button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ angular.module('oppia').directive('questionsList', [
};
// Checking if Question contains all requirement to enable
// Save and Publish Question
$scope.toggleEnableButton = function() {
$scope.isSaveButtonDisabled = function() {
return $scope.question.validate(
$scope.misconceptionsBySkill);
};
Expand Down