Skip to content

Commit

Permalink
Merge branch 'v2' into icons
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored Sep 22, 2024
2 parents 6cd9ff6 + 921ee87 commit af7be6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/Updates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ export default defineComponent({
this.displayedDays = this.days.slice(0, this.loadIndex);
},
handleLoadMoreDays() {
const button = document.querySelector('.btn.btn--primary');
if (this.loadIndex >= this.days.length) {
this.buttonText = 'Nothing more found';
if (button) button.setAttribute('disabled', 'true');
setTimeout(() => {
this.buttonText = 'Load More';
if (button) button.removeAttribute('disabled');
}, 1000);
} else {
this.loadMoreDays();
Expand Down

0 comments on commit af7be6d

Please sign in to comment.