Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojj2209 authored Sep 16, 2023
2 parents 3570ab5 + ed3d5f0 commit 75f6fae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class QuestionResponsePanelComponent {
next: (sessionResults: SessionResults) => {
const responses: QuestionOutput = sessionResults.questions[0];
if (responses) {
question.hasResponse = true;
question.feedbackQuestion = responses.feedbackQuestion;
question.allResponses = responses.allResponses;
question.otherResponses = responses.otherResponses;
Expand All @@ -104,7 +105,7 @@ export class QuestionResponsePanelComponent {
question.responsesToSelf = responses.responsesToSelf;
question.hasResponseButNotVisibleForPreview = responses.hasResponseButNotVisibleForPreview;
question.hasCommentNotVisibleForPreview = responses.hasCommentNotVisibleForPreview;
} else {
} else {
question.hasResponse = false;
if (question.errorMessage) {
this.statusMessageService.showSuccessToast('Question '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ <h2 class="question-details"><b>Question {{ model.questionNumber }}: </b>{{ mode
<div class="col-12 text-center">
<button id="btn-submit-qn-{{ model.questionNumber }}" type="submit" class="btn btn-success"
ngbTooltip="You can save your responses for this question at any time and come back later to continue."
(click)="saveFeedbackResponses()" [disabled]="isSavingResponses || isSubmissionDisabled">
#tooltip="ngbTooltip" (mouseenter)="tooltip.open()"
(click)="saveFeedbackResponses(); tooltip.close();"[disabled]="isSavingResponses || isSubmissionDisabled">
<tm-ajax-loading *ngIf="isSavingResponses"></tm-ajax-loading>
<span>{{ isQuestionCountOne ? "Submit Response" : "Submit Response for Question " + model.questionNumber }}</span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe('SessionResultPageComponent', () => {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class SessionResultPageComponent implements OnInit {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
});
Expand Down

0 comments on commit 75f6fae

Please sign in to comment.