Loading comcipapic to establish a session for SR requests
This commit is contained in:
@@ -57,6 +57,7 @@ function createContentModal({
|
||||
closeCrmSrPopover,
|
||||
requestTokenRelayOnce,
|
||||
ensureCurrentUser,
|
||||
prepareSrSession,
|
||||
resetCustomerAndOwnerFiltersForPeriod,
|
||||
resetOpportunitiesTable,
|
||||
restoreFilterPreferences,
|
||||
@@ -83,6 +84,7 @@ function createContentModal({
|
||||
|
||||
if (existingModal) {
|
||||
existingModal.hidden = false;
|
||||
prepareSrSession?.();
|
||||
existingModal.querySelector("select").focus();
|
||||
document.documentElement.classList.add("opportunities-extension-scroll-lock");
|
||||
ensureEscapeKeyHandler();
|
||||
@@ -420,6 +422,7 @@ function createContentModal({
|
||||
renderOwnerFilter();
|
||||
renderOpportunitiesTable();
|
||||
requestOpportunitiesForPeriod(select.value);
|
||||
prepareSrSession?.();
|
||||
select.focus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user