fix: warnings navigateur
This commit is contained in:
parent
8d14676656
commit
fbe9619224
@@ -17,21 +17,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref } from 'vue';
|
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
import { storeToRefs } from 'pinia';
|
|
||||||
import { useMangaStore } from '../../application/store/mangaStore';
|
|
||||||
import MangaGrid from '../components/MangaGrid.vue';
|
|
||||||
import MangaList from '../components/MangaList.vue';
|
|
||||||
import Toolbar from '../../../../shared/components/ui/Toolbar.vue';
|
|
||||||
import {
|
import {
|
||||||
ArrowPathIcon,
|
ArrowPathIcon,
|
||||||
MagnifyingGlassIcon,
|
ArrowsUpDownIcon,
|
||||||
Cog6ToothIcon,
|
Cog6ToothIcon,
|
||||||
EyeIcon,
|
EyeIcon,
|
||||||
ArrowsUpDownIcon,
|
FunnelIcon,
|
||||||
FunnelIcon
|
MagnifyingGlassIcon
|
||||||
} from '@heroicons/vue/24/outline';
|
} from '@heroicons/vue/24/outline';
|
||||||
|
import { storeToRefs } from 'pinia';
|
||||||
|
import { onMounted, ref } from 'vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
import Toolbar from '../../../../shared/components/ui/Toolbar.vue';
|
||||||
|
import { useMangaStore } from '../../application/store/mangaStore';
|
||||||
|
import MangaGrid from '../components/MangaGrid.vue';
|
||||||
|
import MangaList from '../components/MangaList.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const mangaStore = useMangaStore();
|
const mangaStore = useMangaStore();
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
label: 'Refresh',
|
label: 'Refresh',
|
||||||
type: 'button',
|
type: 'button',
|
||||||
onClick: () => mangaStore.refreshCollectionInBackground(),
|
onClick: () => mangaStore.refreshCollectionInBackground(),
|
||||||
active: isBackgroundLoading
|
active: isBackgroundLoading.value
|
||||||
},
|
},
|
||||||
{ icon: MagnifyingGlassIcon, label: 'Search', type: 'button', onClick: () => {} }
|
{ icon: MagnifyingGlassIcon, label: 'Search', type: 'button', onClick: () => {} }
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<div v-else-if="currentManga" class="relative">
|
<div v-else-if="currentManga" class="relative">
|
||||||
<!-- Composant invisible qui écoute les mises à jour Mercure -->
|
<!-- Composant invisible qui écoute les mises à jour Mercure -->
|
||||||
<MercureListener :manga-id="mangaId" />
|
<MercureListener :manga-id="String(mangaId)" />
|
||||||
|
|
||||||
<Toolbar :config="toolbarConfig" class="sticky top-16 z-10" />
|
<Toolbar :config="toolbarConfig" class="sticky top-16 z-10" />
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ import { useMangaStore } from '../../application/store/mangaStore';
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const mangaStore = useMangaStore();
|
const mangaStore = useMangaStore();
|
||||||
|
|
||||||
const mangaId = computed(() => route.params.id || null);
|
const mangaId = computed(() => Number(route.params.id) || null);
|
||||||
|
|
||||||
// État de la modale
|
// État de la modale
|
||||||
const isPreferredSourcesModalOpen = ref(false);
|
const isPreferredSourcesModalOpen = ref(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user