-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13032 from AllanOXDi/preview-selected-exercise
Adds ability to preview selected exercise
- Loading branch information
Showing
5 changed files
with
193 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../src/views/common/resourceSelection/subPages/PreviewSelectedResources/PreviewExercise.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
|
||
<div> | ||
<QuestionsAccordion | ||
:questions="questions" | ||
:getQuestionContent="() => contentNode" | ||
:isSelectable="false" | ||
/> | ||
</div> | ||
|
||
</template> | ||
|
||
|
||
<script> | ||
import QuestionsAccordion from '../../../QuestionsAccordion.vue'; | ||
export default { | ||
name: 'PreviewExercise', | ||
components: { | ||
QuestionsAccordion, | ||
}, | ||
props: { | ||
contentNode: { | ||
type: Object, | ||
required: true, | ||
}, | ||
questions: { | ||
type: Array, | ||
required: true, | ||
}, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.