1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 05:09:41 +02:00

fix delete button

This commit is contained in:
Nikita Melnikov 2022-11-14 09:29:08 -03:00
parent 6b12bf163d
commit 339993ef8e

View file

@ -64,7 +64,7 @@
<div class="writing-buttons">
{% include 'components/button.twig' with {label: 'Save changes', name: 'js-submit-save', icon: 'check'} %}
{% if page._id is not empty %}
{% if toString(page._id) is not empty %}
{% include 'components/button.twig' with {label: 'Delete doc', name: 'js-submit-remove', icon: 'trash', style: 'warning'} %}
{% endif %}
</div>