2
0
itizawa 6 жил өмнө
parent
commit
3d45d40742

+ 1 - 1
src/server/views/widget/page_alerts.html

@@ -89,7 +89,7 @@
         {% endif %}
       </div>
       <ul class="list-inline">
-        {% if user and user.admin and req.path == '/trash' %}
+        {% if user and user.admin and req.path == '/trash' and pages.lengs > 0 %}
         <li>
           <button href="#" class="btn btn-danger btn-rounded btn-sm" data-target="#emptyTrash" data-toggle="modal"><i class="icon-trash" aria-hidden="true"></i>{{ t('modal_empty.empty_the_trash') }}</button>
         </li>