Skip to content
Snippets Groups Projects
Commit cfc417f1 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add proper delete text

parent bb438cc7
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
Pipeline #175069 failed
......@@ -77,6 +77,7 @@
:gql-delete-mutation="gqlDeleteMutation"
v-model="deleteEvent"
:items="[selectedEvent.meta]"
:get-name-of-item="getLessonDeleteText"
@save="updateOnSave()"
>
<template #title>
......@@ -173,6 +174,9 @@ export default {
this.$emit("refreshCalendar");
this.model = false;
},
getLessonDeleteText(item) {
return `${this.selectedEvent.name} · ${this.$d(this.selectedEvent.start, "shortDateTime")}${this.$d(this.selectedEvent.end, "shortTime")}`;
},
},
computed: {
initPatchData() {
......
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