diff --git a/public/js/views/ricercaSpudorata.js b/public/js/views/ricercaSpudorata.js index dc853ac..687549a 100644 --- a/public/js/views/ricercaSpudorata.js +++ b/public/js/views/ricercaSpudorata.js @@ -176,6 +176,7 @@ const RicercaSpudorataView = { try { const data = await App.api(`/api/tickets?search=${encodeURIComponent(query)}&per_page=2000`); this.cachedTickets = data.tickets || []; + this.otrsBaseUrl = data.otrsBaseUrl || ''; this.hasSearched = true; this.currentPage = 1; this.selectedIds.clear(); @@ -267,8 +268,13 @@ const RicercaSpudorataView = { 📋 + ${this.otrsBaseUrl ? ` + + O + + ` : ''} + ${t.tn} - ${App.formatDateTime(t.create_time)} diff --git a/public/js/views/ticketList.js b/public/js/views/ticketList.js index 045f11a..39cc976 100644 --- a/public/js/views/ticketList.js +++ b/public/js/views/ticketList.js @@ -328,13 +328,13 @@ const TicketListView = { 📋 - ${t.tn} ${data.otrsBaseUrl ? ` - - O + + O ` : ''} - + + ${t.tn} ${App.formatDateTime(t.create_time)}