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 @@ ...@@ -8,7 +8,7 @@
> >
<lesson-information <lesson-information
class="flex-grow-1" class="flex-grow-1"
:documentation="$attrs.documentation" :documentation="documentation"
/> />
<lesson-summary <lesson-summary
class="flex-grow-1" class="flex-grow-1"
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
@loading="loading = $event" @loading="loading = $event"
@save="$emit('close')" @save="$emit('close')"
/> />
<lesson-notes class="flex-grow-1" :documentation="$attrs.documentation" /> <lesson-notes class="flex-grow-1" :documentation="documentation" />
</div> </div>
<v-divider /> <v-divider />
<v-card-actions v-if="!('compact' in $attrs)"> <v-card-actions v-if="!('compact' in $attrs)">
...@@ -57,6 +57,12 @@ export default { ...@@ -57,6 +57,12 @@ export default {
documentationsMutation: createOrUpdateDocumentations, documentationsMutation: createOrUpdateDocumentations,
}; };
}, },
props: {
documentation: {
type: Object,
required: true,
},
},
methods: { methods: {
save() { save() {
this.$refs.summary.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