fix old ui5 releases startup order (#1796)

This commit is contained in:
oblomov-dev 2025-03-10 19:37:03 -03:00 committed by GitHub
parent e0f6fa16a4
commit 7906a4944a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,9 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
]
},
async init() {
z2ui5.oConfig = {};
UIComponent.prototype.init.apply(this, arguments);
if (typeof z2ui5 == 'undefined') {
@ -24,7 +27,6 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
z2ui5.oDeviceModel = Models.createDeviceModel();
this.setModel(z2ui5.oDeviceModel, "device");
z2ui5.oConfig = {};
z2ui5.oConfig.ComponentData = this.getComponentData();
try {
@ -79,4 +81,4 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
UIComponent.prototype.exit.apply(this, arguments);
},
});
});
});