pipelines.createWindow(() => { const View = new ViewWindow({ title: ` Gestion des pipelines`, width: "900px", height: "600px" }) const pipelinesList = new Array() View.setContent(`

Chargement en cours ...

`) var AllPipelines = new Array() function getPipelines() { const pipes = get("PL_GET_ALL") pipes.then((ANS_pipes) => { AllPipelines.length = 0 pipelinesList.length = 0 if(ANS_pipes != "UNAVAILABLE") { ANS_pipes.jobs.forEach((pipe) => { console.log(pipe) const pipeline = new Pipeline({ pipeline: pipe, View: View }) pipelinesList.push(pipeline.generateHTML()) AllPipelines.push(pipeline) }) View.setContent(`
${pipelinesList.join("")}
`) for(const pipeline of AllPipelines) { pipeline.loadScript() } getID("reload_Btn_pipeline").addEventListener("click", () => { View.setContent(`

Chargement en cours ...

`) getPipelines() }) } else { View.setContent(`

Une erreur est survenue lors du chargement des pipelines

`) } }) } getPipelines() })