Fix Navigation active on results

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
Jonas Rittershofer 2020-05-11 17:30:35 +02:00
parent b4b5ea060b
commit 442d5dc5ad
2 changed files with 7 additions and 2 deletions

View file

@ -23,10 +23,9 @@
<template>
<AppNavigationItem
ref="navigationItem"
:exact="true"
:icon="icon"
:title="formTitle"
:to="{ name: 'edit', params: { hash: form.hash } }"
:to="{ name: 'formRoot', params: { hash: form.hash } }"
@click="mobileCloseNavigation">
<template v-if="!loading" #actions>
<ActionLink

View file

@ -45,6 +45,12 @@ export default new Router({
path: '/',
name: 'root',
},
{
path: '/:hash',
redirect: { name: 'edit' },
name: 'formRoot',
props: true,
},
{
path: '/:hash/edit',
components: {