Skip to content

Commit

Permalink
dont show button
Browse files Browse the repository at this point in the history
  • Loading branch information
suryabulusu committed Nov 25, 2024
1 parent 013363f commit 0340d14
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
24 changes: 13 additions & 11 deletions src/components/Omr/OmrModal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex flex-col bg-white w-full h-full overflow-auto justify-between">
<Header class="fixed top-0" v-if="isQuizAssessment" :hasQuizEnded="hasQuizEnded"
:hasTimeLimit="quizTimeLimit != null" :title="title" :userId="userId" :isOmrMode="isOmrMode"
:hasTimeLimit="quizTimeLimit != null" :title="title" :userId="userId" :isOmrMode=true
:isSessionAnswerRequestProcessing="isSessionAnswerRequestProcessing" v-model:isPaletteVisible="isPaletteVisible"
:timeRemaining="timeRemaining" :warningTimeLimit="timeLimitWarningThreshold"
@time-limit-warning="displayTimeLimitWarning" @end-test="endTest" @end-test-by-time="endTestByTime"
Expand All @@ -12,7 +12,7 @@
<div class="flex grow flex-col w-full h-full overflow-y-auto">
<QuestionPalette v-if="isPaletteVisible" :hasQuizEnded="hasQuizEnded" :questionSetStates="questionSetStates"
:currentQuestionIndex="currentQuestionIndex" :title="title" :subject="subject" :testFormat="testFormat"
:maxMarks="maxMarks" :numQuestions="numQuestions" :quizTimeLimit="quizTimeLimit" :isOmrMode="isOmrMode"
:maxMarks="maxMarks" :numQuestions="numQuestions" :quizTimeLimit="quizTimeLimit" :isOmrMode=true
class="absolute w-full h-full sm:w-2/3 lg:w-1/2 xl:w-1/3 z-10 bg-white overflow-y-scroll pb-[56px]"
data-test="questionPalette">
</QuestionPalette>
Expand All @@ -31,12 +31,18 @@
:questionType="$props.questions[questionState.index].type"
:isGradedQuestion="$props.questions[questionState.index].graded"
:maxCharLimit="$props.questions[questionState.index].max_char_limit"
:matrixSize="$props.questions[questionState.index].matrix_size" :isPortrait="isPortrait"
:quizType="quizType" :hasQuizEnded="hasQuizEnded" :submittedAnswer="draftResponses[questionState.index]"
:matrixSize="$props.questions[questionState.index].matrix_size"
:isPortrait="isPortrait"
:quizType="quizType"
:hasQuizEnded="hasQuizEnded"
:submittedAnswer="draftResponses[questionState.index]"
:isQuestionDisabled="questionDisabledArray[questionState.index]"
:currentQuestionIndex="questionState.index" @option-selected="questionOptionSelected"
@subjective-answer-entered="subjectiveAnswerUpdated" @numerical-answer-entered="numericalAnswerUpdated"
:key="questionState.index" :data-test="`OmrItem-${questionState.index}`"
:currentQuestionIndex="questionState.index"
@option-selected="questionOptionSelected"
@subjective-answer-entered="subjectiveAnswerUpdated"
@numerical-answer-entered="numericalAnswerUpdated"
:key="questionState.index"
:data-test="`OmrItem-${questionState.index}`"
:ref="`omritem-${questionState.index}`"></OmrItem>
</div>
</div>
Expand Down Expand Up @@ -147,10 +153,6 @@ export default defineComponent({
type: Number,
default: 0
},
isOmrMode: {
type: Boolean,
default: false,
},
userId: {
type: String,
default: ""
Expand Down
3 changes: 2 additions & 1 deletion src/components/Questions/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export default defineComponent({
window.location.href = url.toString();
}
const shouldShowOmrToggle = computed(() => props.quizType == "assessment")
// const shouldShowOmrToggle = computed(() => props.quizType == "assessment")
const shouldShowOmrToggle = computed(() => false)
const toggleButtonTextConfig = computed(() => {
const config = {
Expand Down
11 changes: 0 additions & 11 deletions src/components/Questions/Palette/QuestionPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,6 @@ export default defineComponent({
`w-1/2 font-bold text-white p-2 px-4 bp-500:p-4 bp-500:px-6 rounded-lg sm:rounded-2xl shadow-xl border shadow-lg ring-primary`,
]);
// const state = reactive({
// instructionTextClass:
// "text-lg md:text-xl lg:text-2xl mx-4 mt-2 leading-none text-slate-500",
// titleTextClass:
// "text-lg md:text-xl lg:text-2xl mx-4 mt-10 font-bold leading-tight whitespace-pre-wrap",
// instructionsButtonClass:
// "bg-gray-300 w-full font-bold ring-gray-500 p-2 px-4 bp-500:p-4 bp-500:px-6 rounded-lg sm:rounded-2xl shadow-xl",
// showInstructions: false,
// showPalette: true,
// });
return {
...state,
navigateToQuestion,
Expand Down
4 changes: 2 additions & 2 deletions src/views/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
}"
:quizType="metadata.quiz_type"
:hasQuizEnded="hasQuizEnded"
:isOmrMode="isOmrMode"
:numQuestions="maxQuestionsAllowedToAttempt"
:maxQuestionsAllowedToAttempt="currentMaxQuestionsAllowedToAttempt"
:questionSetStates="questionSetStates"
Expand Down Expand Up @@ -253,7 +252,8 @@ export default defineComponent({
return isOmrMode.value ? "omr-assessment" : "assessment";
});
const shouldShowOmrToggle = computed(() => state.metadata.quiz_type == "assessment")
// const shouldShowOmrToggle = computed(() => state.metadata.quiz_type == "assessment")
const shouldShowOmrToggle = computed(() => false)
const toggleButtonTextConfig = computed(() => {
const config = {
Expand Down

0 comments on commit 0340d14

Please sign in to comment.