Skip to content

Commit

Permalink
fix(ui): set selected header key in timeline (#138)
Browse files Browse the repository at this point in the history
* fix(ui): set selected header key in timeline

* fix(ui): set selected header key in timeline
  • Loading branch information
marianfoo committed Apr 21, 2022
1 parent d1618a0 commit 9a024a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ui/src/controller/Timeline.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ import BaseController from "./BaseController";
*/
export default class Timeline extends BaseController {
public onInit(): void {
console.log("Timeline.onInit");
this.getRouter().getRoute("timeline").attachPatternMatched(this.onPatternMatched, this);
}

public onNameClick(event: sap.ui.base.Event): void {
this.navTo("RouteObjectView", {
name: event.getSource().getBindingContext("versions").getObject().name,
});
}

public onPatternMatched(event): void {
this.getView().getModel("settings").setProperty("/iconTabHeaderKey", "timeline");
}
}

0 comments on commit 9a024a4

Please sign in to comment.