diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue index 80b3176..40ff09a 100644 --- a/src/pages/calendar/TheCalendar.vue +++ b/src/pages/calendar/TheCalendar.vue @@ -1,6 +1,6 @@ @@ -40,6 +49,8 @@ import BaseButtonPlus from "../../../components/base/buttons/BaseButtonPlus.vue"; import BaseOpenButton from "../../../components/base/buttons/BaseOpenButton.vue"; import BaseCreateButton from "../../../components/base/buttons/BaseCreateButton.vue"; +import img from "../../../assets/images/team-member.svg"; + export default { name: "CalendarSidebar", components: { @@ -48,7 +59,7 @@ export default { BaseCreateButton, }, props: { - team: Array, + teamData: Array, }, data() { return { @@ -63,6 +74,7 @@ export default { isOpen: false, turnButton: "180deg", maxLengthLastName: 13, + avatar: img, }; }, computed: { @@ -96,13 +108,15 @@ export default { ); this.turnButton = this.isOpen ? "0deg" : "180deg"; }, - changeLastName(lastName) { + changeName(lastName, fitstName, patronymic) { return lastName.length > this.maxLengthLastName - ? lastName.substr(0, this.maxLengthLastName) + "... " - : lastName + " "; - }, - changeInitials(firstName, patronymic) { - return firstName.substr(0, 1) + "." + patronymic.substr(0, 1) + "."; + ? lastName.slice(0, this.maxLengthLastName) + "... " + : lastName + + " " + + fitstName.slice(0, 1) + + "." + + patronymic.slice(0, 1) + + "."; }, }, };