update: use pool ID for pool selection

This commit is contained in:
ngn 2024-08-26 00:59:15 +03:00
parent 5bf6876558
commit 9c61c49b96
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func GET_index(c *fiber.Ctx) error {
if len(pools) != 0 { if len(pools) != 0 {
for _, p := range pools { for _, p := range pools {
if p == pkg.Pool.Name { if p == pkg.Pool.ID() {
found = true found = true
break break
} }

View File

@ -14,7 +14,7 @@
<select name="pools"> <select name="pools">
<option value="">Select pool</option> <option value="">Select pool</option>
{{range .pools}} {{range .pools}}
<option value="{{.Name}}">{{.Display}}</option> <option value="{{.ID}}">{{.Display}}</option>
{{end}} {{end}}
</select> </select>
<div class="checkbox"> <div class="checkbox">