Skip to content
Snippets Groups Projects
Commit 5e302e09 authored by permcu's avatar permcu
Browse files

Handle amend lesson mutation like other use sites & add it to props

parent daeafeb0
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
Pipeline #144018 failed
mutation gqlAmendLesson($input: LessonEventInput!) {
mutation createAmendLesson($input: LessonEventInput!) {
amendLesson(input: $input) {
lessonEvent {
id
......
......@@ -106,7 +106,7 @@
:default-item="amendEvent.default"
:is-create="true"
createItemI18nKey="chronos.event.amend.title"
:gql-create-mutation="gqlAmendLesson"
:gql-create-mutation="amendEvent.gqlCreateMutation"
@cancel="amendEvent.open = false"
/>
</v-card-actions>
......@@ -126,7 +126,7 @@ import LessonRelatedObjectChip from "../../LessonRelatedObjectChip.vue";
import lessonEvent from "../mixins/lessonEvent";
import LessonEventSubject from "../../LessonEventSubject.vue";
import gqlAmendLesson from "../../amendLesson.graphql";
import createAmendLesson from "../../amendLesson.graphql";
export default {
name: "LessonDetails",
......@@ -138,7 +138,6 @@ export default {
CancelledCalendarStatusChip,
EditButton,
DialogObjectForm,
gqlAmendLesson,
},
mixins: [calendarFeedDetailsMixin, lessonEvent],
data() {
......@@ -174,6 +173,7 @@ export default {
cancelled: false,
comment: ""
},
gqlCreateMutation: createAmendLesson,
},
};
},
......
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