From c0cfb0e770195a67f0676f35f59a9a3dbfd6ae33 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 31 May 2023 13:22:10 +0200 Subject: [PATCH] launchpad compatibility (#256) --- src/z2ui5_cl_http_handler.clas.abap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/z2ui5_cl_http_handler.clas.abap b/src/z2ui5_cl_http_handler.clas.abap index 41005cd4..bfe35a57 100644 --- a/src/z2ui5_cl_http_handler.clas.abap +++ b/src/z2ui5_cl_http_handler.clas.abap @@ -201,7 +201,11 @@ CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION. ` definition: sap.z2ui5.oResponse.PARAMS.XML_MAIN,` && |\n| && ` }).then(oView => {` && |\n| && ` oView.setModel(oModel);` && |\n| && - ` oView.placeAt("content");` && |\n| && + ` if (sap.z2ui5.oParent) { ` && |\n| && + ` sap.z2ui5.oParent.removeAllPages(); ` && |\n| && + ` sap.z2ui5.oParent.insertPage( oView ); ` && |\n| && + ` }else{` && |\n| && + ` oView.placeAt("content")};` && |\n| && ` sap.z2ui5.oView = oView;` && |\n| && ` });` && |\n| && ` }.bind(this);` && |\n| &&