Refresh templates after account selection

This commit is contained in:
Paul Huliganga 2026-04-22 22:21:54 -04:00
parent b6b734dbd1
commit 18d037905c
1 changed files with 6 additions and 2 deletions

View File

@ -365,8 +365,12 @@ async function selectDocusignAccount(accountId, errorEl = null) {
await api.auth.selectDocusignAccount(accountId); await api.auth.selectDocusignAccount(accountId);
closeDocusignAccountPicker(); closeDocusignAccountPicker();
await refreshAuth(); await refreshAuth();
const { refreshTemplates } = await import('./templates.js'); setState('templatesError', null);
refreshTemplates(); const { refreshTemplates, renderTemplates } = await import('./templates.js');
await refreshTemplates();
if ((window.location.hash || '#/templates').startsWith('#/templates')) {
await renderTemplates();
}
showToast('DocuSign account selected.', 'success'); showToast('DocuSign account selected.', 'success');
} catch (e) { } catch (e) {
if (errorEl) { if (errorEl) {