generated from cms/tibi-docs
This commit is contained in:
parent
6a94866368
commit
bb4a9a2c55
@ -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++
|
||||||
|
Loading…
Reference in New Issue
Block a user