Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Feb 21, 2024
1 parent 1ba7add commit 1f4498d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import type { ListName } from "@/types/hackerNews"
const { settings } = useSettingsStore()
const coreData = useCoreDataStore()
const fetchingData = useFetchingDataStore()
const { fetchLists, fetchList, changeItemsInQueue } = fetchingData
const { fetchLists, fetchList, resetItemsInQueue } = fetchingData
const liveDataCacheInitialized = useFetchingDataStore().getLiveDataCacheInitializationState
const selected = ref<ListName[]>(["topstories"])
function fetchMore() {
// Clear count
changeItemsInQueue(0)
resetItemsInQueue()
fetchSelectedLists()
}
function fetchSelectedLists() {
Expand Down
6 changes: 3 additions & 3 deletions src/stores/fetchData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ export const useFetchingDataStore = defineStore("fetchData", () => {

const promptOfFetching = ref<string>("")

function changeItemsInQueue(number: number) {
itemsInQueue.value = number
function resetItemsInQueue() {
itemsInQueue.value = 0
}

return {
Expand All @@ -167,7 +167,7 @@ export const useFetchingDataStore = defineStore("fetchData", () => {
fetchLiveData,
itemsInQueue,
promptOfFetching,
changeItemsInQueue,
resetItemsInQueue,
liveDataCacheInitialized,
getLiveDataCacheInitializationState,
confirmLiveDataCacheInitialized,
Expand Down

0 comments on commit 1f4498d

Please sign in to comment.