Skip to content
Snippets Groups Projects
Commit 14a41f5e authored by Gilgard's avatar Gilgard
Browse files

router fix

parent b85a81a3
No related branches found
No related tags found
1 merge request!133Edit listing
Pipeline #181689 failed
......@@ -54,7 +54,7 @@
>
<li>
<button
@click="this.$router.push('/user/userItems/' + item.listingID + '/edit')"
@click="this.$router.push('/item/' + item.listingID + '/edit')"
class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
>
Rediger gjenstand
......@@ -117,7 +117,7 @@
>
<li>
<button
@click="this.$router.push('/user/userItems/' + item.listingID + '/edit')"
@click="this.$router.push('/item/' + item.listingID + '/edit')"
class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
>
Rediger gjenstand
......
......@@ -123,15 +123,15 @@ const routes = [
beforeEnter: guardRoute,
},
{
path: "/user/userItems",
name: "UserItems",
component: () => import("../views/UserProfileViews/UserItemsView.vue"),
path: "/item/:id/edit",
name: "editItem",
component: () => import("../views/ItemViews/EditItemView.vue"),
beforeEnter: guardRoute,
},
{
path: "/user/userItems/:id/edit",
path: "/user/userItems",
name: "UserItems",
component: () => import("../views/ItemViews/EditItemView.vue"),
component: () => import("../views/UserProfileViews/UserItemsView.vue"),
beforeEnter: guardRoute,
},
// Make sure it's your last route definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment