Closed sgauruseu closed 6 years ago
Here's the abstract responsible for choosing tab
private getTabToOpen(issues?: Issue[]): IssuesPanel {
if (!issues) {
return this.getFirstNonEmptyTab();
}
if (issues[0].getModifier()) {
if (this.isIssueModifiedByCurrentUser(issues[0])) {
if (issues[0].getIssueStatus() === IssueStatus.CLOSED) {
return this.closedIssuesPanel;
}
}
return <IssuesPanel>this.dockedPanel.getDeck().getPanelShown();
}
if (this.isIssueCreatedByCurrentUser(issues[0])) {
return this.openIssuesPanel;
}
return <IssuesPanel>this.dockedPanel.getDeck().getPanelShown();
}
It currently opens closed issues tab if an issue was closed by the current user. @ase, should we switch to open issues if the last issue in the list was reopened ?
Issue moved to enonic/xp-apps #412 via ZenHub