Skip to content

Commit

Permalink
Move changes from deleted Popular.js to Popular.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Nov 26, 2024
1 parent 304fa82 commit cb7f395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 114 deletions.
108 changes: 0 additions & 108 deletions src/renderer/views/Popular/Popular.js

This file was deleted.

12 changes: 6 additions & 6 deletions src/renderer/views/Popular/Popular.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import store from '../../store/index'
import { invidiousAPICall } from '../../helpers/api/invidious'
import { copyToClipboard, getRelativeTimeFromDate, setPublishedTimestampsInvidious, showToast } from '../../helpers/utils'
import { useI18n } from '../../composables/use-i18n-polyfill'
import { KeyboardShortcuts } from '../../../constants'
const { t } = useI18n()
Expand Down Expand Up @@ -107,12 +108,11 @@ function keyboardShortcutHandler(event) {
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
if (event.repeat) { return }
switch (event.key) {
case 'r':
case 'R':
case 'F5':
if (!isLoading.value) {
fetchPopularInfo()
switch (event.key.toLowerCase()) {
case 'f5':
case KeyboardShortcuts.APP.SITUATIONAL.REFRESH:
if (!this.isLoading) {
this.fetchPopularInfo()
}
break
}
Expand Down

0 comments on commit cb7f395

Please sign in to comment.