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:
@@ -15,6 +15,7 @@ const App = {
|
||||
motivationalPhrases: [],
|
||||
drafts: {},
|
||||
tabs: [],
|
||||
lastListView: '#/tickets',
|
||||
|
||||
loadTabs() {
|
||||
try {
|
||||
@@ -232,6 +233,10 @@ const App = {
|
||||
const hash = fullHash.split('?')[0];
|
||||
const titleEl = document.getElementById('page-title');
|
||||
|
||||
if (hash === '#/tickets' || hash === '#/tickets/my') {
|
||||
this.lastListView = hash;
|
||||
}
|
||||
|
||||
// Save draft for previous ticket before routing
|
||||
if (typeof TicketDetailView !== 'undefined' && TicketDetailView.ticketId) {
|
||||
TicketDetailView.saveDraft();
|
||||
|
||||
Reference in New Issue
Block a user