feat: update to v2.0.3, premium redesign and fix navigation bugs
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)
This commit is contained in:
@@ -152,6 +152,21 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
setupEventListeners();
|
||||
initDragAndDrop();
|
||||
setInterval(loadClientsList, 5000);
|
||||
|
||||
// Process Querystring actions (from navigation links in other pages)
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const action = urlParams.get('action');
|
||||
if (action) {
|
||||
setTimeout(() => {
|
||||
if (action === 'new-patient') window.openCreatePatientModal();
|
||||
else if (action === 'settings') window.openSettingsModal();
|
||||
else if (action === 'plugins') window.openPluginsModal();
|
||||
else if (action === 'sync') window.openSyncModal();
|
||||
|
||||
// Remove querystring to prevent reopening on reload
|
||||
window.history.replaceState({}, document.title, window.location.pathname);
|
||||
}, 300);
|
||||
}
|
||||
} catch (error) {
|
||||
_log.error('INIT', 'Erro fatal na inicialização:', error.message, error);
|
||||
showErrorBanner('Erro na inicialização', error.message);
|
||||
|
||||
Reference in New Issue
Block a user