Fix incorrect data value when toggling bookmark flag on entry page

This commit is contained in:
Dave Z 2018-06-28 21:56:04 -04:00 committed by Frédéric Guillot
parent 0227bb9828
commit 0b0f4751fa

View file

@ -15,7 +15,7 @@
data-label-loading="{{ t "Saving..." }}"
data-label-star="☆ {{ t "Star" }}"
data-label-unstar="★ {{ t "Unstar" }}"
data-value="{{ if .Starred }}star{{ else }}unstar{{ end }}"
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
>{{ if .entry.Starred }}★ {{ t "Unstar" }}{{ else }}☆ {{ t "Star" }}{{ end }}</a>
</li>
{{ if .hasSaveEntry }}