diff --git a/ui-frontend/controller/TabBarControllers/InsuranceCompany.controller.js b/ui-frontend/controller/TabBarControllers/InsuranceCompany.controller.js index f752e6694b7dbeefadb5d78a41d95f8ba126dabf..0d70a18a9aaef75ec0d7cb3eb57408309f6a0f19 100644 --- a/ui-frontend/controller/TabBarControllers/InsuranceCompany.controller.js +++ b/ui-frontend/controller/TabBarControllers/InsuranceCompany.controller.js @@ -1,10 +1,11 @@ sap.ui.define([ "sap/ui/core/mvc/Controller", + "sap/m/MessageBox", "personal/account/formatter/formatter", "personal/account/util/Const", "personal/account/util/Utils", "personal/account/util/API" -], function (Controller, formatter, Const, Utils, API) { +], function (Controller, MessageBox, formatter, Const, Utils, API) { "use strict"; return Controller.extend("personal.account.controller.TabBarControllers.InsuranceCompany", { @@ -137,6 +138,10 @@ sap.ui.define([ self.oTechModel.setProperty("/tech/insuranceCompanyTab/isApplyButtonVisible", false); self.oTechModel.setProperty("/tech/insuranceCompanyTab/changeInsuranceCompanyMessage", ""); self.oTechModel.setProperty("/tech/insuranceCompanyTab/changeInsuranceCompanyMessageIsPending", false); + var sErrorText = self.getOwnerComponent().getModel("i18n") + .getResourceBundle() + .getText("msg.box.error"); + MessageBox.error(sErrorText); }); } },