Skip to content
Snippets Groups Projects
Commit 54708b5d authored by Julian's avatar Julian
Browse files

Replace $attrs with a prop

parent f47212f8
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
......@@ -8,7 +8,7 @@
>
<lesson-information
class="flex-grow-1"
:documentation="$attrs.documentation"
:documentation="documentation"
/>
<lesson-summary
class="flex-grow-1"
......@@ -20,7 +20,7 @@
@loading="loading = $event"
@save="$emit('close')"
/>
<lesson-notes class="flex-grow-1" :documentation="$attrs.documentation" />
<lesson-notes class="flex-grow-1" :documentation="documentation" />
</div>
<v-divider />
<v-card-actions v-if="!('compact' in $attrs)">
......@@ -57,6 +57,12 @@ export default {
documentationsMutation: createOrUpdateDocumentations,
};
},
props: {
documentation: {
type: Object,
required: true,
},
},
methods: {
save() {
this.$refs.summary.save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment