mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-05-19 13:23:30 +02:00
ffeb822a21
* Set name and label at creation of client. Fixes #48 Changes behaviour of the add button from directly creating an configuration to directing the user to an "create configuration" view. If no name is given the default name is used same way as before. This means that the go backend works with the old frontend as well with the new. * Follow best practice in writing json. Also handle err. * 2 Bug fixes. 1. Fix bug introduced in last commit. Don't try to json encode data that is already encoded. 2. Honor --max-number-client-config When the creation moved from Clients.svelte to NewClient.svelte the check in returned json for errors got lost. Now it is back.