From fbbe7776fb2200163ef815e74fdaa7aa3330397f Mon Sep 17 00:00:00 2001 From: mightycox Date: Fri, 13 Oct 2023 10:51:54 -0700 Subject: [PATCH] Fixes some spacing for contacts pages and fixes date issue --- backend/src/components/edx/exchange.js | 7 ------- .../src/components/institute/AuthoritiesContacts.vue | 6 ++++-- .../src/components/institute/DistrictContacts.vue | 12 ++++++------ .../components/institute/common/SchoolContacts.vue | 8 +++++--- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/backend/src/components/edx/exchange.js b/backend/src/components/edx/exchange.js index 0b868e873..153f676f9 100644 --- a/backend/src/components/edx/exchange.js +++ b/backend/src/components/edx/exchange.js @@ -88,9 +88,6 @@ async function getExchanges(req, res) { element['contactIdentifierName'] = tempMinTeam.teamName; } } - if (element['createDate']) { - element['createDate'] = LocalDateTime.parse(element['createDate']).format(DateTimeFormatter.ofPattern('uuuu/MM/dd')); - } }); } return res.status(200).json(dataResponse); @@ -190,10 +187,6 @@ async function getExchange(req, res) { dataResponse['districtName'] = district.name; } - if (dataResponse['createDate']) { - dataResponse['createDate'] = LocalDateTime.parse(dataResponse['createDate']).format(DateTimeFormatter.ofPattern('uuuu/MM/dd')); - } - //creating activities list for timeline display on the frontend dataResponse['activities'] = []; dataResponse['commentsList'].forEach((comment) => { diff --git a/frontend/src/components/institute/AuthoritiesContacts.vue b/frontend/src/components/institute/AuthoritiesContacts.vue index c23c180b1..5fd20af26 100644 --- a/frontend/src/components/institute/AuthoritiesContacts.vue +++ b/frontend/src/components/institute/AuthoritiesContacts.vue @@ -94,9 +94,10 @@
- +

@@ -129,7 +131,7 @@ v-else cols="2" > - +

No contacts of this type have been listed.

diff --git a/frontend/src/components/institute/DistrictContacts.vue b/frontend/src/components/institute/DistrictContacts.vue index 87847b9d9..28bdf936a 100644 --- a/frontend/src/components/institute/DistrictContacts.vue +++ b/frontend/src/components/institute/DistrictContacts.vue @@ -85,7 +85,7 @@
@@ -139,14 +139,14 @@
- +

{{ districtContactType.label @@ -158,7 +158,7 @@ v-if="!districtContactType.publiclyAvailable" cols="2" > - + @@ -196,7 +196,7 @@ no-gutters cols="2" > - +

No contacts of this type have been listed.

diff --git a/frontend/src/components/institute/common/SchoolContacts.vue b/frontend/src/components/institute/common/SchoolContacts.vue index 5cd80a58c..b254c2018 100644 --- a/frontend/src/components/institute/common/SchoolContacts.vue +++ b/frontend/src/components/institute/common/SchoolContacts.vue @@ -46,9 +46,10 @@
- +

{{ schoolContactType.label @@ -60,7 +61,7 @@ v-if="!schoolContactType.publiclyAvailable" cols="2" > - + @@ -96,7 +98,7 @@ v-else cols="2" > - +

No contacts of this type have been listed.