Skip to content
Snippets Groups Projects

Resolve "Add simple course book list"

Merged Hangzhi Yu requested to merge 256-add-simple-course-book-list into master
Compare and Show latest version
11 files
+ 472
41
Compare changes
  • Side-by-side
  • Inline
Files
11
<template>
<div class="full-width d-flex flex-column flex-md-row align-stretch">
<lesson-information
:documentation="documentation"
/>
<lesson-summary
class="flex-grow-1"
:documentation="documentation"
:is-create="false"
:gql-patch-mutation="updateDocumentationsMutation"
/>
<lesson-notes
class="flex-grow-1"
:documentation="documentation"
/>
</div>
</template>
<script>
import LessonInformation from "./LessonInformation.vue";
import LessonSummary from "./LessonSummary.vue";
import LessonNotes from "./LessonNotes.vue";
// or pass from Coursebook?
import { gqlCreateOrUpdateDocumentations } from "../coursebook.graphql";
export default {
name: "Documentation",
components: {
LessonInformation,
LessonSummary,
LessonNotes,
},
props: {
documentation: {
type: Object,
required: true,
},
},
data() {
return {
updateDocumentationsMutation: gqlCreateOrUpdateDocumentations,
};
},
};
</script>
Loading