1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

Preserve category selection when no feed is found

This commit is contained in:
Frédéric Guillot 2018-12-12 21:31:50 -08:00
parent 82e08d0f69
commit 43ccaf52af
3 changed files with 5 additions and 3 deletions

View file

@ -32,7 +32,7 @@
<label for="form-category">{{ t "form.feed.label.category" }}</label>
<select id="form-category" name="category_id">
{{ range .categories }}
<option value="{{ .ID }}">{{ .Title }}</option>
<option value="{{ .ID }}" {{ if eq $.form.CategoryID .ID }}selected="selected"{{ end }}>{{ .Title }}</option>
{{ end }}
</select>