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