The find needs to change the == in the if statement to === (must've been updated in the Tickets addon), so it's:
<xf:if is="$ticket.canUndelete() AND $ticket.discussion_state === 'deleted'">
<xf:button href="{{ link('tickets/undelete', $ticket) }}" class="button--link" overlay="true">
{{ phrase('undelete') }}
</xf:button>
</xf:if>
(with the indentation)
The find needs to change the
==in the if statement to===(must've been updated in the Tickets addon), so it's:(with the indentation)