Refresh templates after account selection
This commit is contained in:
parent
b6b734dbd1
commit
18d037905c
|
|
@ -365,8 +365,12 @@ async function selectDocusignAccount(accountId, errorEl = null) {
|
|||
await api.auth.selectDocusignAccount(accountId);
|
||||
closeDocusignAccountPicker();
|
||||
await refreshAuth();
|
||||
const { refreshTemplates } = await import('./templates.js');
|
||||
refreshTemplates();
|
||||
setState('templatesError', null);
|
||||
const { refreshTemplates, renderTemplates } = await import('./templates.js');
|
||||
await refreshTemplates();
|
||||
if ((window.location.hash || '#/templates').startsWith('#/templates')) {
|
||||
await renderTemplates();
|
||||
}
|
||||
showToast('DocuSign account selected.', 'success');
|
||||
} catch (e) {
|
||||
if (errorEl) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue