diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-09-01 19:57:19 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-01 22:31:28 -0500 |
commit | 2360958862125eebcfebcd9a015874e829a5218f (patch) | |
tree | 2b15623abb31473b276d875a0b13fe6d0c4f6396 /youtube | |
parent | 02480553b6e4c5650dd994a44b1eb8deabea825b (diff) | |
download | yt-local-2360958862125eebcfebcd9a015874e829a5218f.tar.lz yt-local-2360958862125eebcfebcd9a015874e829a5218f.tar.xz yt-local-2360958862125eebcfebcd9a015874e829a5218f.zip |
Subscriptions manager: Make file input required
This avoids an ugly error if the user forgets to select a file
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/templates/subscription_manager.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/templates/subscription_manager.html b/youtube/templates/subscription_manager.html index cf51a9b..5db5d8d 100644 --- a/youtube/templates/subscription_manager.html +++ b/youtube/templates/subscription_manager.html @@ -20,7 +20,7 @@ <form class="subscriptions-import-form" enctype="multipart/form-data" action="/youtube.com/import_subscriptions" method="POST"> <h2>Import subscriptions</h2> <div class="subscriptions-import-options"> - <input type="file" id="subscriptions-import" accept="application/json, application/xml, text/x-opml, text/csv" name="subscriptions_file"> + <input type="file" id="subscriptions-import" accept="application/json, application/xml, text/x-opml, text/csv" name="subscriptions_file" required> <input type="submit" value="Import"> </div> </form> |