Hide submit button in modal when part is still active

This commit is contained in:
eeintech 2021-09-30 09:58:23 -04:00
parent 1e9ae927d4
commit 480ff5e6cb

View File

@ -508,7 +508,8 @@
launchModalForm(
"{% url 'part-delete' part.id %}",
{
redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %}
redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %},
no_post: {% if part.active %}true{% else %}false{% endif %},
}
);
});