diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-12-09 14:06:02 +0100 |
|---|---|---|
| committer | jwijenbergh <jwijenbergh@noreply.codeberg.org> | 2024-12-09 15:48:36 +0000 |
| commit | 02a54aed212fb69dbacbbd8629ea1fe3b272cddf (patch) | |
| tree | 69207041816328e7e0aa85660ff2837d9f4d9cd8 /internal/api/profiles/profiles.go | |
| parent | f88a7b917db9dab7c3d7a26b7a7ece11c4d5eb20 (diff) | |
Profile: Implement priority
Diffstat (limited to 'internal/api/profiles/profiles.go')
| -rw-r--r-- | internal/api/profiles/profiles.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/profiles/profiles.go b/internal/api/profiles/profiles.go index 9f51064..e835ffe 100644 --- a/internal/api/profiles/profiles.go +++ b/internal/api/profiles/profiles.go @@ -26,6 +26,9 @@ type Profile struct { // This is provided for a Linux client issue // See: https://github.com/eduvpn/python-eduvpn-client/issues/550 DNSSearchDomains []string `json:"dns_search_domain_list"` + // 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:"profile_priority"` } // ListInfo is the struct that has the profile list @@ -109,6 +112,7 @@ func (i Info) Public() server.Profiles { "en": p.DisplayName, }, DefaultGateway: p.DefaultGateway, + Priority: p.Priority, } } return server.Profiles{Map: m} |
