Disable directory refresh button if no directories.
This commit is contained in:
parent
7bd9d45863
commit
349fb33199
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ ALBUM_ID = undefined;
|
||||||
class="green_button button_with_spinner"
|
class="green_button button_with_spinner"
|
||||||
data-onclick="api.albums.refresh_directories(ALBUM_ID, common.refresh);"
|
data-onclick="api.albums.refresh_directories(ALBUM_ID, common.refresh);"
|
||||||
data-spinner-delay="500"
|
data-spinner-delay="500"
|
||||||
|
{% if not album.get_associated_directories() %}
|
||||||
|
title="No associated directories"
|
||||||
|
disabled
|
||||||
|
{% endif %}
|
||||||
>
|
>
|
||||||
Refresh directories
|
Refresh directories
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue