WIP привести к изначальному виду
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user