mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
User EnumTypeDisplay for objects
This commit is contained in:
parent
3eb13e20d2
commit
f1d7b57a21
2 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { apiCall } from '../../api';
|
||||
import getPlugins from '../../plugins';
|
||||
import EnumTypeDisplay from '~/components/display/EnumTypeDisplay.vue';
|
||||
const p = getPlugins();
|
||||
|
||||
let services = $ref({});
|
||||
|
@ -9,7 +10,7 @@ let selection = $ref([] as number[]);
|
|||
|
||||
const columns = [
|
||||
{ heading: 'Name', path: 'name' },
|
||||
{ heading: 'Type', path: 'type' },
|
||||
{ heading: 'Type', path: 'type', component: markRaw(EnumTypeDisplay), componentProp: 'data' },
|
||||
{ heading: 'Value', path: 'value' },
|
||||
{ heading: 'Comment', path: 'comment' },
|
||||
];
|
||||
|
@ -91,4 +92,4 @@ onMounted(async() => {
|
|||
<button :disabled="selection.length != 1" @click="editService">Edit</button>
|
||||
<button :disabled="selection.length != 1" @click="deleteService">Delete</button>
|
||||
</TableView>
|
||||
</template>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue