Shot list: don't show task creation button when there is no task of that type
This commit is contained in:
@@ -27,9 +27,11 @@
|
||||
class="status-{{ task.properties.status }}") {{ task.name }}
|
||||
br
|
||||
| {% endfor %}
|
||||
| {% if not tasks_for_shots[shot._id][task_type] %}
|
||||
a(
|
||||
href="javascript:task_create('{{ shot._id }}', '{{ project.url }}', '{{ task_type }}');")
|
||||
| + Task
|
||||
| {% endif %}
|
||||
| {% endfor %}
|
||||
| {% endfor %}
|
||||
|
||||
|
Reference in New Issue
Block a user