Skip to content

Commit

Permalink
fix: hide closed ticket counter
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 12, 2023
1 parent 994e40d commit 34cdcd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions uniticket/uni_ticket/views/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def dashboard(request, structure_slug, structure):
follow=True
).select_related('ticket').values('ticket')

chiusi = assignments.filter(ticket__is_closed=True).annotate(total=Count('ticket__code')).count()
# chiusi = assignments.filter(ticket__is_closed=True).annotate(total=Count('ticket__code')).count()
opened = assignments.filter(ticket__assigned_date__isnull=False, ticket__is_closed=False).annotate(total=Count('ticket__code')).count()
unassigned = assignments.filter(ticket__assigned_date__isnull=True, ticket__is_closed=False).annotate(total=Count('ticket__code')).count()
my_opened = assignments.filter(ticket__assigned_date__isnull=False, ticket__is_closed=False, taken_by=request.user).annotate(total=Count('ticket__code')).count()
Expand All @@ -82,7 +82,7 @@ def dashboard(request, structure_slug, structure):
"sub_title": sub_title,
"ticket_aperti": opened,
"ticket_assegnati_a_me": my_opened,
"ticket_chiusi": chiusi,
# "ticket_chiusi": chiusi,
"ticket_messages": messages,
"ticket_non_gestiti": unassigned,
"title": title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
(<span class="badge badge-light">{{ ticket_assegnati_a_me }}</span> {% trans 'a me' %})
</a>
<a role="button" class="btn btn-outline-secondary" href="{% url 'uni_ticket:manage_closed_ticket_url' structure_slug=structure.slug %}">
<span class="badge badge-light">{{ ticket_chiusi }}</span> {% trans 'Chiuse' %}
{% trans 'Chiuse' %}
</a>

0 comments on commit 34cdcd7

Please sign in to comment.