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

Emit event when substitution is emtied & does not contain oldId

parent dd7a13be
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
Pipeline #189528 failed
......@@ -209,7 +209,7 @@ import deleteMixin from "aleksis.core/mixins/deleteMixin.js";
<script>
export default {
name: "SubstitutionCard",
emits: ["open", "close"],
emits: ["open", "close", "delete"],
mixins: [createOrPatchMixin, deleteMixin],
data() {
return {
......@@ -259,7 +259,7 @@ export default {
cached[index].id = cached[index].oldId;
cached[index].oldId = null;
} else {
cached.splice(index, 1);
this.$emit("delete");
}
}
return cached;
......
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