Don't show CourseSession* without dates
This commit is contained in:
parent
987159a531
commit
a4ac834699
|
|
@ -91,6 +91,7 @@ const appointments = computed(() => {
|
|||
.allDueDates()
|
||||
.filter(
|
||||
(dueDate) =>
|
||||
hasDueDate(dueDate) &&
|
||||
isMatchingCourse(dueDate) &&
|
||||
isMatchingSession(dueDate) &&
|
||||
isMatchingCircle(dueDate)
|
||||
|
|
@ -108,6 +109,10 @@ const isMatchingCircle = (dueDate: DueDate) =>
|
|||
const isMatchingCourse = (dueDate: DueDate) =>
|
||||
courseSessions.value.map((cs) => cs.id).includes(dueDate.course_session_id);
|
||||
|
||||
const hasDueDate = (dueDate: DueDate) => {
|
||||
return dueDate.start || dueDate.end;
|
||||
};
|
||||
|
||||
const numAppointmentsToShow = ref(7);
|
||||
const canLoadMore = computed(() => {
|
||||
return numAppointmentsToShow.value < appointments.value.length;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
<svg width="238" height="161" viewBox="0 0 238 161" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M238 159.685H75.0557C72.4808 159.685 70.3932 157.602 70.3932 155.031V15.1844C70.3932 12.6602 72.4413 10.6094 74.9767 10.6094H98.4012C98.9017 10.6094 99.3034 11.0103 99.3034 11.5099V22.9803C99.3034 26.3787 102.063 29.1395 105.474 29.1395H145.823C149.228 29.1395 151.994 26.3853 151.994 22.9803V10.6094H135.622C135.622 5.4756 131.454 1.3147 126.31 1.3147C121.167 1.3147 116.999 5.4756 116.999 10.6094H107.199C107.16 13.8106 97.0644 24.8669 85.9086 24.5711C84.7825 24.5382 83.9988 25.7411 83.9988 26.8717V146.657H177.605C179.422 146.657 180.897 145.185 180.897 143.37V15.1909C180.897 12.6602 178.843 10.6094 176.307 10.6094H167.305V109.347C167.305 117.38 148.701 115.434 148.701 115.434C148.701 115.434 151.612 132.603 140.726 132.603H96.2939C83.3468 132.603 70.4854 134.681 58.1969 138.763L52.9483 140.504C40.6664 144.586 27.7984 146.664 14.8514 146.664H0.923096" stroke="#41B5FA" stroke-width="4" stroke-linejoin="round"/>
|
||||
<path
|
||||
d="M238 159.685H75.0557C72.4808 159.685 70.3932 157.602 70.3932 155.031V15.1844C70.3932 12.6602 72.4413 10.6094 74.9767 10.6094H98.4012C98.9017 10.6094 99.3034 11.0103 99.3034 11.5099V22.9803C99.3034 26.3787 102.063 29.1395 105.474 29.1395H145.823C149.228 29.1395 151.994 26.3853 151.994 22.9803V10.6094H135.622C135.622 5.4756 131.454 1.3147 126.31 1.3147C121.167 1.3147 116.999 5.4756 116.999 10.6094H107.199C107.16 13.8106 97.0644 24.8669 85.9086 24.5711C84.7825 24.5382 83.9988 25.7411 83.9988 26.8717V146.657H177.605C179.422 146.657 180.897 145.185 180.897 143.37V15.1909C180.897 12.6602 178.843 10.6094 176.307 10.6094H167.305V109.347C167.305 117.38 148.701 115.434 148.701 115.434C148.701 115.434 151.612 132.603 140.726 132.603H96.2939C83.3468 132.603 70.4854 134.681 58.1969 138.763L52.9483 140.504C40.6664 144.586 27.7984 146.664 14.8514 146.664H0.923096"
|
||||
stroke="#00224D" stroke-width="4" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue