generated from cms/tibi-docs
next bug fixes
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
}
|
||||
setInterval(() => {
|
||||
getNextPage($navigation.pages)
|
||||
|
||||
if (location.pathname.split("/").filter((s) => s).length >= 2) {
|
||||
showNext = false
|
||||
} else {
|
||||
showNext = true
|
||||
}
|
||||
}, 1000)
|
||||
let showNext = true
|
||||
$: {
|
||||
@@ -28,13 +34,13 @@
|
||||
if (location.pathname != "/") {
|
||||
getNextPage($navigation.pages)
|
||||
}
|
||||
if (location.pathname.split("/").length >= 2) {
|
||||
}
|
||||
if (location.pathname.split("/").filter((s) => s).length >= 2) {
|
||||
showNext = false
|
||||
} else {
|
||||
showNext = true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="footer">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
import TextLink from "../widgets/textLink.svelte"
|
||||
import TopDown from "../widgets/topDown.svelte"
|
||||
import WorldCard from "../widgets/Worldcard/worldcard.svelte"
|
||||
import { rerender } from "../../store"
|
||||
import { pages, rerender } from "../../store"
|
||||
import IconCycleCircle from "../widgets/iconCycleCircle.svelte"
|
||||
import IconCycleBox from "../widgets/iconCycleBox.svelte"
|
||||
|
||||
@@ -32,8 +32,7 @@
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
$: console.log($pages)
|
||||
let nestedPath = checkNestedPath()
|
||||
</script>
|
||||
|
||||
@@ -68,7 +67,11 @@
|
||||
{#if col?.contentType == "text"}
|
||||
<Text text="{col?.text}" />
|
||||
{:else if col?.contentType == "textLink"}
|
||||
<TextLink description="{col?.textLink?.text}" path="{col?.textLink?.link}" bright="{bright}" />
|
||||
<TextLink
|
||||
description="{col?.textLink?.text}"
|
||||
path="{Object.values($pages)?.find((o) => o.id == col.textLink.link)?.path || '/'}"
|
||||
bright="{bright}"
|
||||
/>
|
||||
{:else if col.contentType == "image"}
|
||||
<Image image="{col?.image}" col="{col}" pageId="{pageId}" />
|
||||
{:else if col.contentType == "iconBlocks"}
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
<div class="link-container">
|
||||
{#each col.pageLinkBlocks as link}
|
||||
{#if isNaN(link.rowNr)}
|
||||
{#if isNaN(link.extendableRowNr)}
|
||||
<button
|
||||
class="page-ref"
|
||||
on:click="{() => {
|
||||
$rerender = $rerender + 1
|
||||
|
||||
$scrollToRowNr = link.rowNr
|
||||
navigate(Object.values($pages)?.find((o) => o.id == link.page)?.path || '/')
|
||||
}}"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user