mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1901234 [[Enhancement - Content server] Add tooltip to the Show random book button on the Book details page](https://bugs.launchpad.net/calibre/+bug/1901234)
This commit is contained in:
parent
c930bbcf7d
commit
3c7907b93c
@ -527,7 +527,9 @@ def add_top_bar_buttons(container_id):
|
||||
add_button(container, 'trash', action=delete_book, tooltip=_('Delete this book'))
|
||||
book_id = parse_url_params().book_id
|
||||
if book_id is '0':
|
||||
add_button(container, 'random', def(): fetch_metadata(container_id, 0, proceed_after_succesful_fetch_metadata);)
|
||||
add_button(container, 'random', tooltip=_('Show a random book'), action=def():
|
||||
fetch_metadata(container_id, 0, proceed_after_succesful_fetch_metadata)
|
||||
)
|
||||
add_button(container, 'ellipsis-v', action=show_subsequent_panel.bind(None, 'more_actions'), tooltip=_('More actions'))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user