From 44eda676a379e1b1dcd304445d213d5880ad7234 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 17 May 2022 16:56:43 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03169=20-=20Add=20feature=20to=20connect?= =?UTF-8?q?=20Gsuite=20mail=20box=20with=20OAuth=20N=C2=B02504=20-=20Add?= =?UTF-8?q?=20feature=20to=20connect=20Office=20mail=20box=20with=20OAuth2?= =?UTF-8?q?=20for=20Microsoft=20Graph=20N=C2=B05102=20-=20Allow=20to=20sen?= =?UTF-8?q?d=20emails=20(eg.=20notifications)=20using=20GSuite=20SMTP=20an?= =?UTF-8?q?d=20OAuth=20=20*=202.7=20migration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/pages/backoffice/oauth/Wizard.ready.js.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/pages/backoffice/oauth/Wizard.ready.js.twig b/templates/pages/backoffice/oauth/Wizard.ready.js.twig index b6ccf248a9..8cc2978404 100644 --- a/templates/pages/backoffice/oauth/Wizard.ready.js.twig +++ b/templates/pages/backoffice/oauth/Wizard.ready.js.twig @@ -58,6 +58,10 @@ const oOpenSignInWindow = function (url, name){ once we reach our landing page, it'll send us a reply */ oListener = window.setInterval(function(){ + if (oWindowObjectReference.closed) { + $('.ibo-oauth-wizard--form--submit').prop('disabled', false); + clearInterval(oListener); + } oWindowObjectReference.postMessage('anyone', '{{ sReturnUri }}'); }, 1000); /* Once we receive a response, transmit it to the server to get authenticate and display @@ -113,7 +117,6 @@ function oUpdateProviderImage(elem){ $('#b06d66ec-6c84-45dd-8c27-1263a6253192-107').attr('fill', oColor3); $('#f58f497e-6949-45c8-be5f-eee2aa0f6586').attr('fill', oColor3); $('#aff120b1-519b-4e96-ac87-836aa55663de').attr('fill', oColor3); - $('#aff120b1-519b-4e96-ac87-836aa55663de').attr('fill', oColor3); $('#ae7af94f-88d7-4204-9f07-e3651de85c05-111').attr('fill', oColor4); $('#a6768b0e-63d0-4b31-8462-9b2e0b00f0fd-112').attr('fill', oColor4); }