Link to /market/:id/form

This commit is contained in:
ekzyis 2023-11-27 02:45:05 +01:00
parent 798b28999c
commit 1ab65afdcd

View File

@ -1,7 +1,7 @@
<template> <template>
<ul> <ul>
<li class="my-3" v-for="market in markets" :key="market.id"> <li class="my-3" v-for="market in markets" :key="market.id">
<router-link :to="'/market/' + market.id">{{ market.description }}</router-link> <router-link :to="'/market/' + market.id + '/form'">{{ market.description }}</router-link>
</li> </li>
</ul> </ul>
<button v-if="!showForm" @click.prevent="toggleForm">+ create market</button> <button v-if="!showForm" @click.prevent="toggleForm">+ create market</button>