From 7794203cd99171fe47f6055e9e66fdd6d0092abb Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Mon, 2 Oct 2023 15:09:37 +0200 Subject: [PATCH] chore: due dates list refactor --- .../src/components/dueDates/DueDatesList.vue | 20 +++++++--- .../components/dueDates/DueDatesShortList.vue | 2 + .../components/header/MainNavigationBar.vue | 20 +++++----- client/src/pages/AppointmentsPage.vue | 40 ++++++++++++------- client/src/pages/DashboardPage.vue | 2 + 5 files changed, 55 insertions(+), 29 deletions(-) diff --git a/client/src/components/dueDates/DueDatesList.vue b/client/src/components/dueDates/DueDatesList.vue index 4ba57f1f..5b02c6a6 100644 --- a/client/src/components/dueDates/DueDatesList.vue +++ b/client/src/components/dueDates/DueDatesList.vue @@ -7,6 +7,8 @@ const props = defineProps<{ maxCount: number; dueDates: DueDate[]; showTopBorder: boolean; + showBottomBorder: boolean; + showAllDueDatesLink: boolean; }>(); const allDueDates = computed(() => { @@ -20,7 +22,7 @@ const dueDatesDisplayed = computed(() => { + + diff --git a/client/src/components/dueDates/DueDatesShortList.vue b/client/src/components/dueDates/DueDatesShortList.vue index 752206e6..166a4d40 100644 --- a/client/src/components/dueDates/DueDatesShortList.vue +++ b/client/src/components/dueDates/DueDatesShortList.vue @@ -4,6 +4,8 @@ :due-dates="allDueDates" :max-count="props.maxCount" :show-top-border="props.showTopBorder" + show-all-due-dates-link + show-bottom-border > diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index e58a89a6..c95e586e 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -174,16 +174,6 @@ onMounted(() => {
- - - - { + + + +
-
    -
  • - -
  • -
-
- {{ $t("dueDates.noDueDatesAvailable") }} -
+ +
diff --git a/client/src/pages/DashboardPage.vue b/client/src/pages/DashboardPage.vue index 4a2b8523..e08ff039 100644 --- a/client/src/pages/DashboardPage.vue +++ b/client/src/pages/DashboardPage.vue @@ -71,6 +71,8 @@ const getNextStepLink = (courseSession: CourseSession) => { :due-dates="allDueDates" :max-count="13" :show-top-border="false" + :show-all-due-dates-link="true" + :show-bottom-border="true" >