Merge pull request #1440 from bookwyrm-social/create-list-button

Don't show delete button in create list form
This commit is contained in:
Mouse Reeve 2021-09-20 14:52:17 -07:00 committed by GitHub
commit 15818ad65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,8 +45,10 @@
</div> </div>
</div> </div>
</div> </div>
{% if list.id %}
<div class="column is-narrow"> <div class="column is-narrow">
{% trans "Delete list" as button_text %} {% trans "Delete list" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_list" controls_uid=list.id focus="modal_title_delete_list" %} {% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_list" controls_uid=list.id focus="modal_title_delete_list" %}
</div> </div>
{% endif %}
</div> </div>