Skip to content
Snippets Groups Projects

Resolve "Substitutions PDF for new data model"

Merged magicfelix requested to merge 215-substitutions-pdf-for-new-data-model into master
All threads resolved!
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -7,7 +7,7 @@
<delete-button
v-if="selectedEvent.meta.amended"
i18n-key="chronos.event.amend.delete_button"
@click="delete = true"
@click="deleteEvent = true"
/>
<dialog-object-form
v-model="edit"
@@ -16,7 +16,7 @@
createItemI18nKey="chronos.event.amend.title"
:gql-create-mutation="gqlCreateMutation"
:get-create-data="transformCreateData"
:default-item="default"
:default-item="defaultItem"
editItemI18nKey="chronos.event.amend.title"
:gql-patch-mutation="gqlPatchMutation"
:get-patch-data="transformPatchData"
@@ -70,7 +70,7 @@
<delete-dialog
deleteSuccessMessageI18nKey="chronos.event.amend.delete_success"
:gql-mutation="gqlDeleteMutation"
v-model="delete"
v-model="deleteEvent"
:item="selectedEvent.meta"
@success="updateOnSave()"
>
@@ -130,13 +130,13 @@ export default {
value: "comment",
},
],
default: {
defaultItem: {
cancelled: this.selectedEvent.meta.cancelled,
comment: this.selectedEvent.meta.comment,
},
gqlCreateMutation: createAmendLesson,
gqlPatchMutation: patchAmendLesson,
delete: false,
deleteEvent: false,
gqlDeleteMutation: deleteAmendLesson,
};
},
Loading