add sibling navigation
This commit is contained in:
parent
5b33ec5f35
commit
57c523dd13
4 changed files with 168 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue