fix: note temporanee che non funzionavano. feat: le note possono essere inviate ad otrs senza numero di ticket. style: rivisti alcuni nomi e colore per invio di una nota temporanea in otrs.

This commit is contained in:
Gabriele Cimaschi committed 2026-09-07 17:58:13 +02:00
1 parent b828d60bb2
commit f21be0abcb
9 files changed
+216 -70

No files matched your search

+12 -3
View File
@@ -313,7 +313,7 @@ const App = {
} else if (hash === '#/note-temporanee') {
document.getElementById('nav-note-temporanee')?.classList.add('active');
titleEl.textContent = 'Note Temporanee';
titleEl.textContent = 'Note';
NoteTemporaneeView.render();
} else if (hash === '#/tickets/new') {
@@ -897,7 +897,7 @@ const App = {
<p style="margin-bottom: var(--space-lg, 24px); color: var(--text-muted, #a6adc8); font-size: 0.95rem; line-height: 1.5;">${message}</p>
<div style="display: flex; gap: var(--space-sm, 12px); justify-content: flex-end;">
<button id="confirm-btn-cancel" class="btn btn-ghost" style="height: 36px; font-size: 0.9rem; padding: 0 16px; border-radius: var(--radius-md, 6px);">${options.cancelText || 'Annulla'}</button>
<button id="confirm-btn-ok" class="btn btn-danger" style="height: 36px; font-size: 0.9rem; padding: 0 16px; border-radius: var(--radius-md, 6px); font-weight: 500; cursor: pointer;">${options.confirmText || 'Conferma'}</button>
<button id="confirm-btn-ok" class="btn ${options.confirmClass || 'btn-danger'}" style="height: 36px; font-size: 0.9rem; padding: 0 16px; border-radius: var(--radius-md, 6px); font-weight: 500; cursor: pointer;">${options.confirmText || 'Conferma'}</button>
</div>
`;
@@ -1136,10 +1136,19 @@ const App = {
e.stopPropagation();
onSelect(items[currentIndex]);
}
} else if (e.key === 'Escape') {
} else if (e.key === 'Tab' || e.key === 'Escape') {
if (currentIndex >= 0 && items[currentIndex] && e.key === 'Tab') {
onSelect(items[currentIndex]);
}
suggestionsEl.style.display = 'none';
}
});
inputEl.addEventListener('blur', () => {
setTimeout(() => {
if (suggestionsEl) suggestionsEl.style.display = 'none';
}, 150);
});
},
};