fix: corretto issue 20 e 28. torna alla lista rimanda alla lista e non più alla pagina precedente e i link non aprono più una nuova scheda
This commit is contained in:
@@ -60,7 +60,7 @@ const TicketDetailView = {
|
||||
await App.ensureLookups();
|
||||
const data = await App.api(`/api/tickets/${id}`);
|
||||
const { ticket, articles, attachments } = data;
|
||||
App.addTabWithoutRedirect(ticket.id, ticket.tn, ticket.title);
|
||||
// No automatic tab creation here anymore
|
||||
|
||||
let groupsData = { asMaster: [], asMember: [] };
|
||||
try {
|
||||
@@ -107,7 +107,7 @@ const TicketDetailView = {
|
||||
const emailBtnText = hasEmailDraft ? 'Continua mail' : 'Invia Email';
|
||||
|
||||
container.innerHTML = `
|
||||
<a class="back-link" onclick="history.back()">
|
||||
<a class="back-link" onclick="window.location.hash = App.lastListView || '#/tickets'">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:16px;height:16px;"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
|
||||
Torna alla lista
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user