From 8649690256b919cbf7328bd2505988d898619550 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Wed, 26 Oct 2022 11:38:50 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=81=D0=BE?= =?UTF-8?q?=D1=82=D1=80=D1=83=D0=B4=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ac8b6a04c27ae0bde92055a12cf894d714722ba0. --- src/pages/calendar/TheCalendar.vue | 40 ++++++++++++++---- .../calendar/components/CalendarSidebar.vue | 42 +++++++------------ 2 files changed, 46 insertions(+), 36 deletions(-) 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) + "."; }, }, };