summaryrefslogtreecommitdiff
path: root/templates/upload.html
diff options
context:
space:
mode:
authorHeinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>2023-01-05 22:02:12 +0000
committerJames Mills <james@mills.io>2023-01-05 22:02:12 +0000
commitdc5cceec3704317f71b078d145ca1ec1d801da72 (patch)
treeca73872c02eb82a79733641672c684b1c3ccc96c /templates/upload.html
parentf6dedea101ea5f81448aac8af30302e2e13f621f (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/upload.html')
-rw-r--r--templates/upload.html2
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" />