Skip to content

Commit

Permalink
Some Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yossTheDev committed Sep 6, 2023
1 parent 1f831c3 commit 942d4d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,15 @@ watch(store, () => {
const goTo = (to: string) => {
page.value = to;
f7.views.main.router.navigate(to);
f7.views.main.router.navigate(to, { history: false });
};
</script>

<template>
<k-provider theme="parent">
<f7App
:statusbar="{
enabled: true,
androidOverlaysWebView: true,
androidTextColor: dark ? 'white' : 'black',
}"
v-bind="{
name: 'Prossa',
darkMode: store.Theme,
routes: [
{ path: '/', component: HomePage },
Expand All @@ -80,6 +76,11 @@ const goTo = (to: string) => {
component: BookInfo,
},
],
statusbar: {
enabled: true,
androidOverlaysWebView: true,
androidTextColor: dark ? 'white' : 'black',
},
}"
>
<f7View browser-history main></f7View>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Popups/StatsPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
f7BlockTitle,
} from 'framework7-vue';
import { DateTime, Duration, Interval } from 'luxon';
import { onMounted } from 'vue';
import { watch } from 'vue';
import { useAppStore } from '../../stores/AppStore';
const store = useAppStore();
onMounted(() => {
watch(store, () => {
/* Restart Reading Time on the end of the Month or Year */
const readingTime = DateTime.fromISO(store.lastReadingTime!);
Expand Down Expand Up @@ -45,7 +45,7 @@ onMounted(() => {
</script>

<template>
<f7Popup swipe-to-close close-on-escape animate class="stats-popup">
<f7Popup id="stats-popup" swipe-to-close close-on-escape animate>
<f7View>
<f7Page>
<f7Navbar transparent large title="Stats">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const pickFile = () => {
</template>

<template #right>
<f7Button popup-open=".stats-popup" tonal round small>
<f7Button popup-open="#stats-popup" tonal round small>
<IconFlame></IconFlame> {{ store.daysOfReading }}
</f7Button>

Expand Down

0 comments on commit 942d4d3

Please sign in to comment.