Disable directory refresh button if no directories.

This commit is contained in:
voussoir 2019-06-15 17:03:23 -07:00
parent 7bd9d45863
commit 349fb33199

View file

@ -208,6 +208,10 @@ ALBUM_ID = undefined;
class="green_button button_with_spinner"
data-onclick="api.albums.refresh_directories(ALBUM_ID, common.refresh);"
data-spinner-delay="500"
{% if not album.get_associated_directories() %}
title="No associated directories"
disabled
{% endif %}
>
Refresh directories
</button>