setup proper create and edit router links

This commit is contained in:
Samuel Lorch 2023-04-02 16:22:25 +02:00
parent 4bd841963e
commit 0fdd9ddf60
6 changed files with 12 additions and 12 deletions

View file

@ -83,8 +83,8 @@ onMounted(async() => {
<template>
<TableView title="Services" :columns="columns" :loading="loading" v-model:selection="selection" v-model:data="displayData" :table-props="{sort:true, sortSelf: true}">
<button @click="load">Refresh</button>
<button @click="load">Create</button>
<button @click="load" :disabled="selection.length != 1">Edit</button>
<router-link class="button" to="/edit/object/services">Create</router-link>
<router-link class="button" :disabled="selection.length != 1" :to="'/edit/object/services/' + selection[0]">Edit</router-link>
<button @click="deleteService" :disabled="selection.length != 1">Delete</button>
</TableView>
</template>