From ce7e90e0346307a7a8125d79d6d96b062d770816 Mon Sep 17 00:00:00 2001 From: TheLD Date: Tue, 26 May 2020 16:42:37 +0200 Subject: [PATCH 1/2] add tags to clients --- model/client.go | 1 + ui/src/components/Clients.vue | 42 ++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/model/client.go b/model/client.go index 4a40b27..07711d7 100644 --- a/model/client.go +++ b/model/client.go @@ -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"` diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index 16869bc..cfeaa8c 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -255,7 +255,26 @@ - + + + + + + Date: Tue, 26 May 2020 18:22:35 +0200 Subject: [PATCH 2/2] add ui for tags --- ui/src/components/Clients.vue | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index cfeaa8c..4d34028 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -44,6 +44,17 @@ {{ ip }} +