Secretly fix number 0 showing on 'Warenkorb'

This commit is contained in:
CodeSteak 2020-06-17 00:23:05 +02:00
parent 86e3ced19b
commit e6c068e71a

View File

@ -26,7 +26,10 @@
</form> </form>
</div> </div>
</div> </div>
<a class="button" th:href="@{/shop/checkout}">Warenkorb (<span th:text="${shoppingCart.itemCount}"></span>)</a> <a class="button" th:href="@{/shop/checkout}">Warenkorb
<th:block th:if="${shoppingCart.itemCount > 0}"> (<span th:text="${shoppingCart.itemCount}"></span>)
</th:block>
</a>
</div> </div>
<div th:if="${error}" class="error" id="error-msg"> <div th:if="${error}" class="error" id="error-msg">
<div class="content-width bar-flex"> <div class="content-width bar-flex">