WIP привести к изначальному виду

This commit is contained in:
Daria Golova
2022-11-10 15:26:54 +03:00
parent 4837bea07b
commit 27da063072
7 changed files with 13 additions and 64 deletions

View File

@@ -37,12 +37,6 @@ export default {
CalendarSidebar,
CalendarFormAddEvent,
},
props: {
isOpenHeaderForm: {
type: Boolean,
default: false,
},
},
data() {
return {
sidebarWidth: "72px",
@@ -100,21 +94,16 @@ export default {
this.sidebarWidth = value;
},
openFormCreateEvent() {
this.isOpenForm = !this.isOpenHeaderForm;
this.$emit("is-open-page-form", this.isOpenForm);
this.isOpenForm = true;
},
closeFormCreateEvent() {
this.isOpenForm = false;
this.$emit("is-open-page-form", this.isOpenForm);
},
},
mounted() {
this.fetchPersonsData();
this.fetchEventsData();
},
beforeUnmount() {
this.closeFormCreateEvent();
},
};
</script>