update: use pool ID for pool selection
This commit is contained in:
parent
5bf6876558
commit
9c61c49b96
@ -46,7 +46,7 @@ func GET_index(c *fiber.Ctx) error {
|
||||
|
||||
if len(pools) != 0 {
|
||||
for _, p := range pools {
|
||||
if p == pkg.Pool.Name {
|
||||
if p == pkg.Pool.ID() {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
<select name="pools">
|
||||
<option value="">Select pool</option>
|
||||
{{range .pools}}
|
||||
<option value="{{.Name}}">{{.Display}}</option>
|
||||
<option value="{{.ID}}">{{.Display}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
|
Loading…
Reference in New Issue
Block a user