generated from cms/tibi-docs
Compare commits
2 Commits
fc612ad924
...
bb4a9a2c55
Author | SHA1 | Date | |
---|---|---|---|
bb4a9a2c55 | |||
6a94866368 |
@ -58,6 +58,7 @@
|
|||||||
})
|
})
|
||||||
$pages = pagesRes
|
$pages = pagesRes
|
||||||
$team = teamRes
|
$team = teamRes
|
||||||
|
|
||||||
$jobOffers = jobOffersRes
|
$jobOffers = jobOffersRes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
on:keydown
|
on:keydown
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
let chefs = Object.values($team).filter((p) => p.personType == 'chef')
|
let chefs = Object.values($team).filter((p) => p.personType == 'chef')
|
||||||
|
chefs = chefs.sort((a, b) => a.sort - b.sort)
|
||||||
let i = chefs.findIndex((p) => p.path == page.path)
|
let i = chefs.findIndex((p) => p.path == page.path)
|
||||||
if (i == chefs.length - 1) i = 0
|
if (i == chefs.length - 1) i = 0
|
||||||
else i++
|
else i++
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
export let persons: Page[]
|
export let persons: Page[]
|
||||||
|
persons = persons.sort((a, b) => a.sort - b.sort)
|
||||||
|
|
||||||
let hover = -1
|
let hover = -1
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user