1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Changed variable names

This commit is contained in:
mabashian 2018-05-14 14:58:29 -04:00
parent 1a9b60a199
commit bfc602ae10
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@
<button id="survey-delete-button" class="btn btn-sm SurveyMaker-deleteButton" ng-show="survey_exists && (job_template_obj.summary_fields.user_capabilities.edit || workflow_job_template_obj.summary_fields.user_capabilities.edit || canAdd)" ng-click="showDeleteOverlay('survey')" translate>DELETE SURVEY</button>
<button id="survey-close-button" class="btn btn-sm Form-buttonDefault" ng-click="closeSurvey('survey-modal-dialog')" ng-show="(job_template_obj.summary_fields.user_capabilities.edit || workflow_job_template_obj.summary_fields.user_capabilities.edit || canAdd)" translate>CANCEL</button>
<button id="survey-close-button" class="btn btn-sm Form-buttonDefault" ng-click="closeSurvey('survey-modal-dialog')" ng-show="!(job_template_obj.summary_fields.user_capabilities.edit || workflow_job_template_obj.summary_fields.user_capabilities.edit || canAdd)" translate>CLOSE</button>
<button id="survey-save-button" class="btn btn-sm Form-saveButton" ng-click="saveSurvey()" ng-disabled="(!initiallyHadQuestions && survey_questions.length < 1) || !can_edit || editQuestionIndex !== null" ng-show="(job_template_obj.summary_fields.user_capabilities.edit || workflow_job_template_obj.summary_fields.user_capabilities.edit || canAdd)" translate>SAVE</button>
<button id="survey-save-button" class="btn btn-sm Form-saveButton" ng-click="saveSurvey()" ng-disabled="(!isEditSurvey && survey_questions.length < 1) || !can_edit || editQuestionIndex !== null" ng-show="(job_template_obj.summary_fields.user_capabilities.edit || workflow_job_template_obj.summary_fields.user_capabilities.edit || canAdd)" translate>SAVE</button>
</div>
</div>
</div>

View File

@ -7,7 +7,7 @@ export default
// modal title. We want this toggle to be on by default
scope.survey_enabled = true;
scope.initiallyHadQuestions = false;
scope.isEditSurvey = false;
if (scope.removeDialogReady) {
scope.removeDialogReady();

View File

@ -37,7 +37,7 @@ export default
scope.survey_name = data.name;
scope.survey_description = data.description;
scope.survey_questions = data.spec;
scope.initiallyHadQuestions = true;
scope.isEditSurvey = true;
Wait('stop');
} else {
AddSurvey({