mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-12-18 00:13:23 +00:00
add tags to clients
This commit is contained in:
parent
7e2146a229
commit
ce7e90e034
@ -16,6 +16,7 @@ type Client struct {
|
||||
PresharedKey string `json:"presharedKey"`
|
||||
AllowedIPs []string `json:"allowedIPs"`
|
||||
Address []string `json:"address"`
|
||||
Tags []string `json:"tags"`
|
||||
PrivateKey string `json:"privateKey"`
|
||||
PublicKey string `json:"publicKey"`
|
||||
CreatedBy string `json:"createdBy"`
|
||||
|
@ -255,7 +255,26 @@
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-combobox>
|
||||
|
||||
<v-combobox
|
||||
v-model="client.tags"
|
||||
chips
|
||||
hint="Write tag name and hit enter"
|
||||
label="Tags"
|
||||
multiple
|
||||
dark
|
||||
>
|
||||
<template v-slot:selection="{ attrs, item, select, selected }">
|
||||
<v-chip
|
||||
v-bind="attrs"
|
||||
:input-value="selected"
|
||||
close
|
||||
@click="select"
|
||||
@click:close="client.tags.splice(client.tags.indexOf(item), 1)"
|
||||
>
|
||||
<strong>{{ item }}</strong>
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-combobox>
|
||||
<v-switch
|
||||
v-model="client.enable"
|
||||
color="red"
|
||||
@ -360,6 +379,26 @@
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-combobox>
|
||||
<v-combobox
|
||||
v-model="client.tags"
|
||||
chips
|
||||
hint="Write tag name and hit enter"
|
||||
label="Tags"
|
||||
multiple
|
||||
dark
|
||||
>
|
||||
<template v-slot:selection="{ attrs, item, select, selected }">
|
||||
<v-chip
|
||||
v-bind="attrs"
|
||||
:input-value="selected"
|
||||
close
|
||||
@click="select"
|
||||
@click:close="client.tags.splice(client.tags.indexOf(item), 1)"
|
||||
>
|
||||
<strong>{{ item }}</strong>
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-combobox>
|
||||
<v-switch
|
||||
v-model="client.ignorePersistentKeepalive"
|
||||
color="red"
|
||||
@ -451,6 +490,7 @@
|
||||
enable: true,
|
||||
allowedIPs: this.server.allowedips,
|
||||
address: this.server.address,
|
||||
tags: [],
|
||||
}
|
||||
this.dialogCreate = true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user