UI5 2.x fixes (#1597)
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
js_transform / Code-Cleanup (push) Waiting to run
ui5lint / test (push) Waiting to run

This commit is contained in:
oblomov-dev 2024-11-30 15:05:05 +01:00 committed by GitHub
parent f9375fba19
commit e53aa52fe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo"
], function (UIComponent, Models, Server, VersionInfo) {
sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo", "z2ui5/cc/DebugTool"
], function (UIComponent, Models, Server, VersionInfo, DebugTool) {
return UIComponent.extend("z2ui5.Component", {
metadata: {
manifest: "json"
@ -35,7 +35,7 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server"
document.addEventListener("keydown", function (zEvent) {
if (zEvent?.ctrlKey && zEvent?.key === "F12") {
if (!z2ui5.debugTool){
z2ui5.debugTool = new z2ui5.cc.DebugTool();
z2ui5.debugTool = new DebugTool();
z2ui5.debugTool.show();
} else {
z2ui5.debugTool.close();

View File

@ -1,9 +1,9 @@
sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",
"sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",
"sap/ui/VersionInfo", "z2ui5/cc/Server", "z2ui5/cc/DebugTool",
"sap/ui/VersionInfo", "z2ui5/cc/Server",
],
function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,
Server, DebugTool) {
Server) {
"use strict";
return Controller.extend("z2ui5.controller.View1", {

View File

@ -18,8 +18,8 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
METHOD get.
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo"` && |\n| &&
` ], function (UIComponent, Models, Server, VersionInfo) {` && |\n| &&
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo", "z2ui5/cc/DebugTool"` && |\n| &&
` ], function (UIComponent, Models, Server, VersionInfo, DebugTool) {` && |\n| &&
` return UIComponent.extend("z2ui5.Component", {` && |\n| &&
` metadata: {` && |\n| &&
` manifest: "json"` && |\n| &&
@ -55,7 +55,7 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
` if (!z2ui5.debugTool){` && |\n| &&
` z2ui5.debugTool = new z2ui5.cc.DebugTool();` && |\n| &&
` z2ui5.debugTool = new DebugTool();` && |\n| &&
` z2ui5.debugTool.show();` && |\n| &&
` } else {` && |\n| &&
` z2ui5.debugTool.close();` && |\n| &&

View File

@ -20,10 +20,10 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
result = `sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",` && |\n| &&
` "sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",` && |\n| &&
` "sap/ui/VersionInfo", "z2ui5/cc/Server", "z2ui5/cc/DebugTool",` && |\n| &&
` "sap/ui/VersionInfo", "z2ui5/cc/Server",` && |\n| &&
`],` && |\n| &&
` function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,` && |\n| &&
` Server, DebugTool) {` && |\n| &&
` Server) {` && |\n| &&
` "use strict";` && |\n| &&
` return Controller.extend("z2ui5.controller.View1", {` && |\n| &&
`` && |\n| &&