From ac8b6a04c27ae0bde92055a12cf894d714722ba0 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Wed, 26 Oct 2022 11:32:18 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=81=D0=BE=D1=82?= =?UTF-8?q?=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 --- 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 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) + + "."; }, }, }; From 8649690256b919cbf7328bd2505988d898619550 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Wed, 26 Oct 2022 11:38:50 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Revert=20"=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=81?= =?UTF-8?q?=D0=BE=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) + "."; }, }, };