From 8f55985cb4b17991cfb54bc43df5660baa918201 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Wed, 26 Oct 2022 11:44:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=81=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D1=83=D0=B4=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D1=81?= =?UTF-8?q?=D0=B0=D0=B9=D0=B4=D0=B1=D0=B0=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/calendar/TheCalendar.vue | 40 ++++-------------- .../calendar/components/CalendarSidebar.vue | 42 ++++++++++++------- 2 files changed, 36 insertions(+), 46 deletions(-) diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue index 993f61d..ca8c7ee 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) + + "."; }, }, };