From 02a54aed212fb69dbacbbd8629ea1fe3b272cddf Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 9 Dec 2024 14:06:02 +0100 Subject: Profile: Implement priority --- types/server/server.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'types/server/server.go') diff --git a/types/server/server.go b/types/server/server.go index 26c41c3..5d5d4ca 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -89,6 +89,10 @@ type Profile struct { // DefaultGateway is true when the profile is a default gateway one DefaultGateway bool `json:"default_gateway"` + + // Priority is the priority of the profile for sorting in the UI + // the higher the priority, the higher it should be in the list + Priority int `json:"priority"` } // Profiles is the map of profiles with the current defined -- cgit v1.2.3