Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Sep 10, 2023
1 parent 6bd61cd commit 0937db6
Showing 1 changed file with 47 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,55 +160,53 @@
Building Report...
</div>
</Transition>
<Transition name="fade">
<Table
ref="tableRef"
class="scheduling-report"
:stickyFirstColumn="true"
:stickyHeader="true"
>
<template #thead>
<tr>
<Th class="instructor-column">Instructor</Th>
<Th
v-for="term in termsForReport"
:id="`term-${term.id}`"
:key="term.id"
class="tw-whitespace-nowrap"
:class="{
'!tw-bg-umn-gold-light': term.id === currentTerm?.id,
}"
>
{{ term.name }}
<Spinner
v-if="!coursesByTermMap.has(term.id)"
class="tw-text-neutral-300 tw-h-4 tw-w-4"
/>
</Th>
</tr>
</template>
<ReportRow
v-for="instructor in instructorsWithinReportedTerms"
v-show="isShowingInstructor(instructor)"
:key="instructor.id"
:instructor="instructor"
:search="filters.search"
:terms="termsForReport"
:listOfTermCourses="
termsForReport.map((term) =>
getInstructorTermCourses(instructor, term),
)
"
:listOfTermLeaves="
termsForReport.map((term) =>
selectInstructorTermLeaves(instructor, term),
)
"
:currentTerm="currentTerm"
:isShowingCourse="isShowingCourse"
/>
</Table>
</Transition>
<Table
ref="tableRef"
class="scheduling-report"
:stickyFirstColumn="true"
:stickyHeader="true"
>
<template #thead>
<tr>
<Th class="instructor-column">Instructor</Th>
<Th
v-for="term in termsForReport"
:id="`term-${term.id}`"
:key="term.id"
class="tw-whitespace-nowrap"
:class="{
'!tw-bg-amber-100': term.id === currentTerm?.id,
}"
>
{{ term.name }}
<Spinner
v-if="!coursesByTermMap.has(term.id)"
class="tw-text-neutral-300 tw-h-4 tw-w-4"
/>
</Th>
</tr>
</template>
<ReportRow
v-for="instructor in instructorsWithinReportedTerms"
v-show="isShowingInstructor(instructor)"
:key="instructor.id"
:instructor="instructor"
:search="filters.search"
:terms="termsForReport"
:listOfTermCourses="
termsForReport.map((term) =>
getInstructorTermCourses(instructor, term),
)
"
:listOfTermLeaves="
termsForReport.map((term) =>
selectInstructorTermLeaves(instructor, term),
)
"
:currentTerm="currentTerm"
:isShowingCourse="isShowingCourse"
/>
</Table>
</div>
</div>
</template>
Expand Down

0 comments on commit 0937db6

Please sign in to comment.