Show number of associated directories in alt text.

This commit is contained in:
voussoir 2020-09-14 20:26:46 -07:00
parent 9102b37d5a
commit adbdb3bdb4

View file

@ -211,11 +211,14 @@ const ALBUM_ID = undefined;
Add child
</button>
{% set associated_directories = album.get_associated_directories() %}
<button
class="green_button button_with_spinner"
onclick="return api.albums.refresh_directories(ALBUM_ID, common.refresh);"
data-spinner-delay="500"
{% if not album.get_associated_directories() %}
{% if associated_directories %}
title="Pull from {{associated_directories|length}} directories"
{% else %}
title="No associated directories"
disabled
{% endif %}