Show number of associated directories in alt text.
This commit is contained in:
parent
9102b37d5a
commit
adbdb3bdb4
1 changed files with 4 additions and 1 deletions
|
@ -211,11 +211,14 @@ const ALBUM_ID = undefined;
|
||||||
Add child
|
Add child
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{% set associated_directories = album.get_associated_directories() %}
|
||||||
<button
|
<button
|
||||||
class="green_button button_with_spinner"
|
class="green_button button_with_spinner"
|
||||||
onclick="return api.albums.refresh_directories(ALBUM_ID, common.refresh);"
|
onclick="return api.albums.refresh_directories(ALBUM_ID, common.refresh);"
|
||||||
data-spinner-delay="500"
|
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"
|
title="No associated directories"
|
||||||
disabled
|
disabled
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue