fix: corretto posizionamento barra selezione rapida dopo l'aggiunta delle schede
This commit is contained in:
@@ -606,6 +606,13 @@ const EmailCompose = (() => {
|
||||
if (currentOptions.ticketId) {
|
||||
App.clearDraft(currentOptions.ticketId, 'email');
|
||||
}
|
||||
const btn = document.getElementById('btn-open-email-compose');
|
||||
if (btn) {
|
||||
const svg = btn.querySelector('svg');
|
||||
btn.innerHTML = '';
|
||||
if (svg) btn.appendChild(svg);
|
||||
btn.appendChild(document.createTextNode(' Invia Email'));
|
||||
}
|
||||
const overlay = document.getElementById('email-compose-overlay');
|
||||
if (overlay) overlay.remove();
|
||||
if (quillEditor) { quillEditor = null; }
|
||||
@@ -636,6 +643,15 @@ const EmailCompose = (() => {
|
||||
attachments: [...attachmentsList],
|
||||
options: currentOptions
|
||||
});
|
||||
|
||||
const btn = document.getElementById('btn-open-email-compose');
|
||||
if (btn) {
|
||||
const svg = btn.querySelector('svg');
|
||||
btn.innerHTML = '';
|
||||
if (svg) btn.appendChild(svg);
|
||||
btn.appendChild(document.createTextNode(' Continua mail'));
|
||||
}
|
||||
App.renderTabs();
|
||||
}
|
||||
|
||||
return { open, close, saveDraft };
|
||||
|
||||
Reference in New Issue
Block a user