Add id to menu
This commit is contained in:
parent
82cdca1034
commit
75a14134ed
|
@ -3,7 +3,7 @@
|
||||||
<!-- ****************************** menu links ******************************* -->
|
<!-- ****************************** menu links ******************************* -->
|
||||||
<div class="p-6 bg-gray-700 border-r border-gray-600 flex-none w-maxc flex flex-col justify-between">
|
<div class="p-6 bg-gray-700 border-r border-gray-600 flex-none w-maxc flex flex-col justify-between">
|
||||||
<div class="grid gap-1">
|
<div class="grid gap-1">
|
||||||
<a v-for="item, index in menu" :key="index" href="#" @click.prevent="openMenu(index)" class="rounded py-1 px-3 text-gray-400" :class="index == active ? `bg-gray-600` : ''" v-text="item.title"></a>
|
<a v-for="item, index in menu" :key="index" href="#" :data-cy="`menu-${item.id}`" @click.prevent="openMenu(index)" class="rounded py-1 px-3 text-gray-400" :class="index == active ? `bg-gray-600` : ''" v-text="item.title"></a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button type="button" v-show="mode !== 'create'" @click.prevent="confirm" class="btn block w-full btn-primary">Daten bestätigen</button>
|
<button type="button" v-show="mode !== 'create'" @click.prevent="confirm" class="btn block w-full btn-primary">Daten bestätigen</button>
|
||||||
|
@ -64,10 +64,10 @@ export default {
|
||||||
inner: {},
|
inner: {},
|
||||||
active: 0,
|
active: 0,
|
||||||
menu: [
|
menu: [
|
||||||
{ title: 'Stammdaten' },
|
{ id: 'stammdaten', title: 'Stammdaten' },
|
||||||
{ title: 'Kontakt' },
|
{ id: 'kontakt', title: 'Kontakt' },
|
||||||
{ title: 'System' },
|
{ id: 'system', title: 'System' },
|
||||||
{ title: 'Sonstiges' },
|
{ id: 'sonstiges', title: 'Sonstiges' },
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue