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 {
|
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
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user