feat: aggiunta possibilità di salvare delle note interne da caricare successivamente su OTRS.
This commit is contained in:
1 parent
146d4ed661
commit
3f3885130a
6 files changed
+837
No files matched your search
@@ -307,9 +307,15 @@ const App = {
|
||||
TicketListView.render();
|
||||
|
||||
} else if (hash === '#/ricerca-spudorata') {
|
||||
document.getElementById('nav-ricerca-spudorata')?.classList.add('active');
|
||||
titleEl.textContent = 'Ricerca Spudorata';
|
||||
RicercaSpudorataView.render();
|
||||
|
||||
} else if (hash === '#/note-temporanee') {
|
||||
document.getElementById('nav-note-temporanee')?.classList.add('active');
|
||||
titleEl.textContent = 'Note Temporanee';
|
||||
NoteTemporaneeView.render();
|
||||
|
||||
} else if (hash === '#/tickets/new') {
|
||||
document.getElementById('nav-new-ticket')?.classList.add('active');
|
||||
titleEl.textContent = 'Nuovo Ticket';
|
||||
@@ -843,6 +849,14 @@ const App = {
|
||||
if (myBadge) {
|
||||
myBadge.textContent = stats.total_my_open > 0 ? stats.total_my_open : '';
|
||||
}
|
||||
|
||||
try {
|
||||
const notes = await this.api('/api/notes');
|
||||
const notesBadge = document.getElementById('temp-notes-count');
|
||||
if (notesBadge) {
|
||||
notesBadge.textContent = (notes && notes.length > 0) ? notes.length : '';
|
||||
}
|
||||
} catch (_) {}
|
||||
} catch (e) {
|
||||
console.warn('Failed to update sidebar badges:', e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user