From 1bf7e8c08dbaca84db676e66afcc0d109ffe0c7f Mon Sep 17 00:00:00 2001 From: Oscar Nadjar Date: Thu, 9 Jan 2025 11:52:49 -0500 Subject: [PATCH] ARLO-60: Fixing pipeline error --- amd/build/syncold.min.js.map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amd/build/syncold.min.js.map b/amd/build/syncold.min.js.map index 3af6d766b94..f509b4093fa 100644 --- a/amd/build/syncold.min.js.map +++ b/amd/build/syncold.min.js.map @@ -1 +1 @@ -{"version":3,"file":"syncold.min.js","sources":["../src/syncold.js"],"sourcesContent":["import ModalForm from 'core_form/modalform';\nimport Config from 'core/config';\nimport {get_string as getString} from 'core/str';\n\nexport const init = (linkSelector, formClass) => {\n let syncbutton = document.querySelector(linkSelector);\n\n syncbutton.addEventListener('click', async (e) => {\n e.preventDefault();\n\n const form = new ModalForm(({\n formClass,\n args: {},\n modalConfig: {\n title: await getString('dateselector', 'enrol_arlo'),\n },\n saveButtonText: await getString('synchronize', 'enrol_arlo'),\n returnFocus: e.currentTarget\n }));\n\n form.addEventListener(form.events.FORM_SUBMITTED, (e) => {\n const response = e.detail;\n let redirect = `${Config.wwwroot}/enrol/arlo/admin/apiretries.php?`;\n let first = false;\n for (let key in response) {\n if (first) {\n first = false;\n } else {\n redirect = redirect + '&';\n }\n redirect = redirect + `${key}=${response[key]}`;\n }\n window.location.assign(redirect);\n });\n\n form.show();\n });\n\n};\n"],"names":["linkSelector","formClass","document","querySelector","addEventListener","async","e","preventDefault","form","ModalForm","args","modalConfig","title","saveButtonText","returnFocus","currentTarget","events","FORM_SUBMITTED","response","detail","redirect","Config","wwwroot","first","key","window","location","assign","show"],"mappings":"sYAIoB,CAACA,aAAcC,aACdC,SAASC,cAAcH,cAE7BI,iBAAiB,SAASC,MAAAA,IACjCC,EAAEC,uBAEIC,KAAO,IAAIC,mBAAW,CACxBR,UAAAA,UACAS,KAAM,GACNC,YAAa,CACTC,YAAa,mBAAU,eAAgB,eAE3CC,qBAAsB,mBAAU,cAAe,cAC/CC,YAAaR,EAAES,gBAGnBP,KAAKJ,iBAAiBI,KAAKQ,OAAOC,gBAAiBX,UACzCY,SAAWZ,EAAEa,WACfC,mBAAcC,gBAAOC,6CACrBC,OAAQ,MACP,IAAIC,OAAON,SACRK,MACAA,OAAQ,EAERH,UAAsB,IAE1BA,oBAAyBI,gBAAON,SAASM,MAE7CC,OAAOC,SAASC,OAAOP,aAG3BZ,KAAKoB"} \ No newline at end of file +{"version":3,"file":"syncold.min.js","sources":["../src/syncold.js"],"sourcesContent":["import ModalForm from 'core_form/modalform';\nimport Config from 'core/config';\nimport {get_string as getString} from 'core/str';\n\nexport const init = (linkSelector, formClass) => {\n let syncbutton = document.querySelector(linkSelector);\n\n syncbutton.addEventListener('click', async(e) => {\n e.preventDefault();\n\n const form = new ModalForm(({\n formClass,\n args: {},\n modalConfig: {\n title: await getString('dateselector', 'enrol_arlo'),\n },\n saveButtonText: await getString('synchronize', 'enrol_arlo'),\n returnFocus: e.currentTarget\n }));\n\n form.addEventListener(form.events.FORM_SUBMITTED, (e) => {\n const response = e.detail;\n let redirect = `${Config.wwwroot}/enrol/arlo/admin/apiretries.php?`;\n let first = false;\n for (let key in response) {\n if (first) {\n first = false;\n } else {\n redirect = redirect + '&';\n }\n redirect = redirect + `${key}=${response[key]}`;\n }\n window.location.assign(redirect);\n });\n\n form.show();\n });\n\n};\n"],"names":["linkSelector","formClass","document","querySelector","addEventListener","async","e","preventDefault","form","ModalForm","args","modalConfig","title","saveButtonText","returnFocus","currentTarget","events","FORM_SUBMITTED","response","detail","redirect","Config","wwwroot","first","key","window","location","assign","show"],"mappings":"sYAIoB,CAACA,aAAcC,aACdC,SAASC,cAAcH,cAE7BI,iBAAiB,SAASC,MAAAA,IACjCC,EAAEC,uBAEIC,KAAO,IAAIC,mBAAW,CACxBR,UAAAA,UACAS,KAAM,GACNC,YAAa,CACTC,YAAa,mBAAU,eAAgB,eAE3CC,qBAAsB,mBAAU,cAAe,cAC/CC,YAAaR,EAAES,gBAGnBP,KAAKJ,iBAAiBI,KAAKQ,OAAOC,gBAAiBX,UACzCY,SAAWZ,EAAEa,WACfC,mBAAcC,gBAAOC,6CACrBC,OAAQ,MACP,IAAIC,OAAON,SACRK,MACAA,OAAQ,EAERH,UAAsB,IAE1BA,oBAAyBI,gBAAON,SAASM,MAE7CC,OAAOC,SAASC,OAAOP,aAG3BZ,KAAKoB"} \ No newline at end of file