feat: update to v2.0.3, premium redesign and fix navigation bugs
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)

This commit is contained in:
VPS 4 Builder
2026-05-26 19:41:32 +02:00
parent ee2ec49d5f
commit 6df952acae
10 changed files with 983 additions and 1293 deletions
+15
View File
@@ -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);