add sibling navigation

This commit is contained in:
Yisroel Baum 2026-06-21 22:49:49 +03:00
parent 5b33ec5f35
commit 57c523dd13
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 168 additions and 1 deletions

View file

@ -2,6 +2,7 @@
import { storeToRefs } from 'pinia'
import { computed, reactive, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import ElementSiblingNavigation from '@/components/ElementSiblingNavigation.vue'
import RichTextEditor from '@/components/RichTextEditor.vue'
import SiteHeader from '@/components/SiteHeader.vue'
import { useElementsStore } from '@/stores/elements'
@ -23,6 +24,7 @@ const elementsStore = useElementsStore()
const {
element,
childElements,
siblingElements,
isLoading,
error,
isSaving,
@ -318,6 +320,13 @@ function resetInput(changeEvent: Event): void {
class="admin-element-page__form"
@submit.prevent="handleSubmit"
>
<ElementSiblingNavigation
:current-element-id="element.id"
:sibling-elements="siblingElements"
data-cy-prefix="admin"
route-name="admin-element"
/>
<label class="admin-element-page__field">
<span class="admin-element-page__label">Title</span>
<input