fix: upload form shows prefix instead of path now (#64)

This is just a cosmetic change as the values still use
the Library.Paths[]

Closes prologic/tube#56

Reviewed-on: https://git.mills.io/prologic/tube/pulls/64
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
This commit is contained in:
Heinrich 'Henrik' Langos 2023-01-21 00:59:14 +00:00 committed by James Mills
parent da0dc4aa23
commit 6a4ea23794

View file

@ -11,7 +11,7 @@
<div class="upload-details"> <div class="upload-details">
<select id="target-library-path" name="target-library-path"> <select id="target-library-path" name="target-library-path">
{{range $index, $item :=.Config.Library}} {{range $index, $item :=.Config.Library}}
<option value="{{$item.Path}}"{{if eq $index 0}} selected{{end}}>{{$item.Path}}</option> <option value="{{$item.Path}}"{{if eq $index 0}} selected{{end}}>/{{$item.Prefix}}</option>
{{end}} {{end}}
</select> </select>
<input id="video-title" type="text" placeholder="Optional title" /> <input id="video-title" type="text" placeholder="Optional title" />