Improve dhcp server table

This commit is contained in:
Samuel Lorch 2024-07-30 23:46:08 +02:00
parent f8752f99af
commit 0c27dffef9

View file

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { apiCall } from '../../api'; import { apiCall } from '../../api';
import getPlugins from '../../plugins'; import getPlugins from '../../plugins';
import ArrayDisplay from '~/components/display/ArrayDisplay.vue';
const p = getPlugins(); const p = getPlugins();
let servers = $ref([]); let servers = $ref([]);
@ -9,6 +10,7 @@ let selection = $ref([] as number[]);
const columns = [ const columns = [
{ heading: 'Interface', path: 'interface' }, { heading: 'Interface', path: 'interface' },
{ heading: 'Pool', path: 'pool', component: markRaw(ArrayDisplay), componentProp: 'data' },
{ heading: 'Comment', path: 'comment' }, { heading: 'Comment', path: 'comment' },
]; ];
@ -48,4 +50,4 @@ onMounted(async() => {
<button :disabled="selection.length != 1" @click="deleteRule">Delete</button> <button :disabled="selection.length != 1" @click="deleteRule">Delete</button>
</TableView> </TableView>
</div> </div>
</template> </template>