Fix for empty dropdown #522

This commit is contained in:
Andy Miller
2016-05-02 19:16:52 -06:00
parent 54691cd271
commit f5f161b536
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
* Fixed UI issue with Backup / Update buttons positioning
* Tweaked placeholders color in login/new user panels [#542](https://github.com/getgrav/grav-plugin-admin/issues/542)
1. [](#bugfix)
*
* Fix for showing empty drop-down with only one supported language [#522](https://github.com/getgrav/grav-plugin-admin/issues/522)
# v1.1.0-beta.2
## 04/27/2016

View File

@@ -127,7 +127,6 @@
{% endif %}
</ul>
</div>
{% if admin.multilang %}
<div class="button-group">
<button type="button" class="button disabled">
@@ -135,6 +134,7 @@
{% set langName = admin.siteLanguages[admin_lang] %}
{{ langName[:1]|upper ~ langName[1:] }}
</button>
{% if admin.languages_enabled|length > 1 %}
<button type="button" class="button dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-caret-down"></i>
</button>
@@ -146,7 +146,7 @@
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %}