Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcheng committed Feb 4, 2025
1 parent 8ecda56 commit 940cb76
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/components/ScheduleGenerate/ScheduleGenerateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,23 @@
<button
@click="() => paginate(1)"
:disabled="currentPage === generatedScheduleOutputs.length"
:class="'footer-button' + (currentPage === generatedScheduleOutputs.length ? ' footer-button-disabled' : ' ')"
:class="
'footer-button' +
(currentPage === generatedScheduleOutputs.length ? ' footer-button-disabled' : ' ')
"
>
<span :class="currentPage === generatedScheduleOutputs.length ? 'footer-text-disabled' : 'footer-text'">Next</span>
<span
:class="
currentPage === generatedScheduleOutputs.length
? 'footer-text-disabled'
: 'footer-text'
"
>Next</span
>
</button>
<span class="pagination-text ml-25">Page {{ currentPage }}/{{ generatedScheduleOutputs.length }}</span>
<span class="pagination-text ml-25"
>Page {{ currentPage }}/{{ generatedScheduleOutputs.length }}</span
>
</div>
<div class="download-button" @click="downloadSchedule">
<svg
Expand Down Expand Up @@ -339,7 +351,10 @@ export default defineComponent({
this.currentPage = 1;
},
paginate(direction: number) {
if ((this.currentPage < this.generatedScheduleOutputs.length && direction === 1) || (this.currentPage > 1 && direction === -1)) {
if (
(this.currentPage < this.generatedScheduleOutputs.length && direction === 1) ||
(this.currentPage > 1 && direction === -1)
) {
this.currentPage += direction;
}
},
Expand Down

0 comments on commit 940cb76

Please sign in to comment.