mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 23:29:08 +00:00
setup proper create and edit router links
This commit is contained in:
parent
4bd841963e
commit
0fdd9ddf60
6 changed files with 12 additions and 12 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue