diff options
| author | Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> | 2023-01-05 22:02:12 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2023-01-05 22:02:12 +0000 |
| commit | dc5cceec3704317f71b078d145ca1ec1d801da72 (patch) | |
| tree | ca73872c02eb82a79733641672c684b1c3ccc96c /templates | |
| parent | f6dedea101ea5f81448aac8af30302e2e13f621f (diff) | |
fix: Select first upload library path by default. (#48)
This is just a minor fix. Probably it shouldn't make a big difference, but I think it is good style to make sure that the there is a pre-selected default for the upload library.
Reviewed-on: https://git.mills.io/prologic/tube/pulls/48
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/upload.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/upload.html b/templates/upload.html index e188de6..97d0c08 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -11,7 +11,7 @@ <div class="upload-details"> <select id="target-library-path" name="target-library-path"> {{range $index, $item :=.Config.Library}} - <option value="{{$item.Path}}">{{$item.Path}}</option> + <option value="{{$item.Path}}"{{if eq $index 0}} selected{{end}}>{{$item.Path}}</option> {{end}} </select> <input id="video-title" type="text" placeholder="Optional title" /> |
