Skip to content

Commit 5876ccb

Browse files
authored
Merge pull request #11497 from internetarchive/fix/mybooks-dropper-primary-cta-logout
Make primary CTA of My Books Dropper "Add to List" when logged out
2 parents 48828d3 + 0e0e28c commit 5876ccb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openlibrary/templates/my_books/primary_action.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
$ message = _("Already Read")
77
$elif read_status == 2:
88
$ message = _("Currently Reading")
9-
$else:
9+
$elif user_key:
1010
$ message = _("Want to Read")
11+
$else:
12+
$ message = _("Add to List")
1113

1214
$ action_value = 'remove' if read_status else 'add'
1315
$ bookshelf_id_value = read_status or '1'

0 commit comments

Comments
 (0)