Skip to content

Commit

Permalink
Update Component.js
Browse files Browse the repository at this point in the history
Use the local _oResourceBundle object
  • Loading branch information
tobiashofmann authored Feb 28, 2023
1 parent 670914e commit 3fdb640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/newwebapp/templates/uimodule/webapp/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sap.ui.define([
oRenderer.addActionButton("sap.m.Button", {
id: "myHomeButton",
icon: "sap-icon://sys-help-2",
text: oResourceBundle.getText("buttonText"),
text: _oResourceBundle.getText("buttonText"),
press: function () {
MessageToast.show(_oResourceBundle.getText("msgMeAreaText"));
}
Expand All @@ -69,7 +69,7 @@ sap.ui.define([
oRenderer.addActionButton("sap.m.Button", {
id: "myAppButton",
icon: "sap-icon://sys-help",
text: oResourceBundle.getText("buttonText"),
text: _oResourceBundle.getText("buttonText"),
press: function () {
MessageToast.show(_oResourceBundle.getText("msgMeAreaTextApp"));
}
Expand Down

0 comments on commit 3fdb640

Please sign in to comment.