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);
|
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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue