From 96880575c29e89258d0f4f90d54f6c1df22bd378 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 4 May 2022 19:05:24 +0200 Subject: [PATCH] Poprawka ikony SUP; mniejsze poprawki --- src/assets/icon-SUP.svg | 14 ++++++-------- src/store/index.ts | 2 -- src/views/JournalView.vue | 28 ++++++++++++++-------------- 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/src/assets/icon-SUP.svg b/src/assets/icon-SUP.svg index 46d1805..1b5942e 100644 --- a/src/assets/icon-SUP.svg +++ b/src/assets/icon-SUP.svg @@ -1,10 +1,8 @@ - + - - - - - - - + + + + + diff --git a/src/store/index.ts b/src/store/index.ts index e205e05..bb78270 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -170,8 +170,6 @@ export const store = createStore({ const statusTimestamp = prevDispatcherStatus && !data.dispatchers ? prevDispatcherStatus.statusTimestamp : getStatusTimestamp(stationStatus); const statusID = prevDispatcherStatus && !data.dispatchers ? prevDispatcherStatus.statusID : getStatusID(stationStatus); - console.log(stationName, prevDispatcherStatus); - prevDispatcherStatuses.push({ hash: stationAPI.stationHash, statusID, diff --git a/src/views/JournalView.vue b/src/views/JournalView.vue index 713ab97..4b95fda 100644 --- a/src/views/JournalView.vue +++ b/src/views/JournalView.vue @@ -225,24 +225,24 @@ export default defineComponent({ const scrollElement: Ref = ref(null); - const handleScroll = (e: Event) => { - if (!scrollElement.value) return; + // const handleScroll = (e: Event) => { + // if (!scrollElement.value) return; - const element = scrollElement.value; + // const element = scrollElement.value; - if (element.getBoundingClientRect().bottom * 0.9 < window.innerHeight) { - // console.log('gituwa'); - // historyDataStatus.value.status = DataStatus.Loading - } - }; + // if (element.getBoundingClientRect().bottom * 0.9 < window.innerHeight) { + // // console.log('gituwa'); + // // historyDataStatus.value.status = DataStatus.Loading + // } + // }; - onMounted(() => { - window.addEventListener('scroll', handleScroll); - }); + // onMounted(() => { + // window.addEventListener('scroll', handleScroll); + // }); - onUnmounted(() => { - window.removeEventListener('scroll', handleScroll); - }); + // onUnmounted(() => { + // window.removeEventListener('scroll', handleScroll); + // }); return { historyList: ref([]) as Ref,