fix: ora le ricerche asincrone non si sovrappongono più alle attività. feat: aggiunta funzione Storico Consuntivazione
This commit is contained in:
1 parent
ba23635c7d
commit
3650bf5790
9 files changed
+737
-33
No files matched your search
@@ -94,6 +94,13 @@ const TicketDetailView = {
|
||||
try {
|
||||
await App.ensureLookups();
|
||||
const data = await App.api(`/api/tickets/${id}`);
|
||||
|
||||
// Route guard: verify user is still on this ticket's detail page
|
||||
const currentHash = (window.location.hash || '').split('?')[0];
|
||||
if (currentHash !== `#/tickets/${id}`) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { ticket, articles, attachments } = data;
|
||||
// No automatic tab creation here anymore
|
||||
|
||||
@@ -838,6 +845,7 @@ const TicketDetailView = {
|
||||
body: JSON.stringify(updates),
|
||||
});
|
||||
Toast.success(res.message || 'Ticket aggiornato!');
|
||||
TicketListView.invalidateCache();
|
||||
// Refresh the view
|
||||
this.render(this.ticketId);
|
||||
} catch (err) {
|
||||
|
||||
Reference in new issue
Block a user