1
1
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-11-26 04:19:41 +01:00

add ui for tags

This commit is contained in:
TheLD 2020-05-26 18:22:35 +02:00
parent ce7e90e034
commit 9cd9f3e018

@ -44,6 +44,17 @@
{{ ip }} {{ ip }}
</v-chip> </v-chip>
</template> </template>
<template v-slot:item.tags="{ item }">
<v-chip
v-for="(tag, i) in item.tags"
:key="i"
color="blue-grey"
text-color="white"
>
<v-icon left>mdi-tag</v-icon>
{{ tag }}
</v-chip>
</template>
<template v-slot:item.created="{ item }"> <template v-slot:item.created="{ item }">
<v-row> <v-row>
<p>At {{ item.created | formatDate }} by {{ item.createdBy }}</p> <p>At {{ item.created | formatDate }} by {{ item.createdBy }}</p>
@ -122,6 +133,17 @@
{{ ip }} {{ ip }}
</v-chip> </v-chip>
</v-card-text> </v-card-text>
<v-card-text class="text--primary">
<v-chip
v-for="(tag, i) in client.tags"
:key="i"
color="blue-grey"
text-color="white"
>
<v-icon left>mdi-tag</v-icon>
{{ tag }}
</v-chip>
</v-card-text>
<v-card-actions> <v-card-actions>
<v-tooltip bottom> <v-tooltip bottom>
<template v-slot:activator="{ on }"> <template v-slot:activator="{ on }">
@ -448,6 +470,7 @@
{ text: 'Name', value: 'name', }, { text: 'Name', value: 'name', },
{ text: 'Email', value: 'email', }, { text: 'Email', value: 'email', },
{ text: 'IP addresses', value: 'address', }, { text: 'IP addresses', value: 'address', },
{ text: 'Tags', value: 'tags', },
{ text: 'Created', value: 'created', sortable: false, }, { text: 'Created', value: 'created', sortable: false, },
{ text: 'Updated', value: 'updated', sortable: false, }, { text: 'Updated', value: 'updated', sortable: false, },
{ text: 'Actions', value: 'action', sortable: false, }, { text: 'Actions', value: 'action', sortable: false, },