@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
23 lines (19 loc) • 668 B
JavaScript
// eslint-disable-next-line no-undef
sap.ui.define(["sap/ui/demo/nav/controller/BaseController"], function (BaseController) {
"use strict";
return BaseController.extend("sap.ui.demo.nav.controller.Home", {
onDisplayNotFound: function () {
// display the "notFound" target without changing the hash
this.getRouter().getTargets().display("notFound", {
fromTarget: "home"
});
},
onNavToEmployees: function () {
this.getRouter().navTo("employeeList");
},
// eslint-disable-next-line no-unused-vars
onNavToEmployeeOverview: function (oEvent) {
this.getRouter().navTo("employeeOverview");
}
});
});