mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 23:29:08 +00:00
fix router link disabling
This commit is contained in:
parent
0fdd9ddf60
commit
f0edca127f
7 changed files with 8 additions and 7 deletions
|
@ -84,7 +84,7 @@ onMounted(async() => {
|
|||
<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>
|
||||
<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>
|
||||
<router-link class="button" :class="{ 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