WIP Деактивировала карточку при закрытии формы

This commit is contained in:
Daria Golova
2022-11-14 12:02:34 +03:00
parent 81451daeb4
commit 90a8a54c6e
5 changed files with 39 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ export default {
name: "CalendarEventCard",
components: { CalendarEventDescriptionCard },
props: {
changeFormWasClosed: Boolean,
ownerEvent: Object,
eventTypes: {
type: Array,
@@ -223,6 +224,17 @@ export default {
this.setDefaultTheme();
},
},
watch: {
changeFormWasClosed: {
immediate: true,
handler(newValue) {
if (newValue === true) {
this.setDefaultTheme();
this.$emit("reset-change-form");
}
},
},
},
};
</script>