Skip to content

Commit

Permalink
Hide check button for legacy answerless questions (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
ang-zeyu authored Jul 31, 2020
1 parent 1643ccc commit 43cfd08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2039,14 +2039,7 @@ exports[`Text Questions of unanswered with shown hint, header without answer ren
>
<!---->
<button
class="btn btn-primary q-btn ml-1"
type="button"
>
Check
</button>
<!---->
<!---->
Expand Down
3 changes: 2 additions & 1 deletion packages/vue-components/src/questions/Question.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@
>
Hint
</button>
<!-- Gracefully deprecate invalid question types without answers -->
<button
v-if="qState.state === 0"
v-if="qState.state === 0 && !(!isValidTypeAndNotTextWithoutKeywords() && !$slots.answer)"
key="check"
type="button"
class="btn btn-primary q-btn ml-1"
Expand Down

0 comments on commit 43cfd08

Please sign in to comment.