mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
Add Apply Interfaces
This commit is contained in:
parent
80f255fe86
commit
e72c2c4f2e
2 changed files with 33 additions and 1 deletions
|
@ -40,6 +40,15 @@ async function load(){
|
|||
loading = false
|
||||
}
|
||||
|
||||
async function apply(){
|
||||
let res = await apiCall("Network.ApplyInterfaces", {});
|
||||
if (res.Error === null) {
|
||||
console.debug("apply log", res.Data.Log);
|
||||
} else {
|
||||
console.debug("error", res);
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async() => {
|
||||
load();
|
||||
});
|
||||
|
@ -48,7 +57,7 @@ onMounted(async() => {
|
|||
|
||||
<template>
|
||||
<TableView title="Interfaces" :columns="columns" :loading="loading" v-model:selection="selection" v-model:data="displayData" :table-props="{sort:true, sortSelf: true}">
|
||||
<button @click="load">Apply</button>
|
||||
<button @click="apply">Apply</button>
|
||||
<button @click="load">Refresh</button>
|
||||
<button @click="load">Create</button>
|
||||
<button @click="load" :disabled="selection.length != 1">Edit</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue