@boomerang-io/carbon-addons-boomerang-react 4.6.15-beta.3 → 4.6.15-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -179,14 +179,14 @@ function AdvantageSideNav(props) {
|
|
|
179
179
|
homeLink ? (React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-home-link", isActive: `${baseEnvUrl}/${app}/`.includes(windowLocation.href), renderIcon: icons.Home, href: homeLink, onClick: (e) => {
|
|
180
180
|
if (isLaunchpad) {
|
|
181
181
|
handleLaunchpadLink(e);
|
|
182
|
-
history.push("/");
|
|
182
|
+
history.push("/launchpad");
|
|
183
183
|
}
|
|
184
184
|
handleHomeClick();
|
|
185
185
|
} }, "Home")) : null,
|
|
186
186
|
teamSwitcherTeam ? (React__default.default.createElement(react.SideNavLink, { title: teamSwitcherTeam.isAccount ? "Account Page" : "Team Page", name: teamSwitcherTeam.name, "data-testid": "sidenav-team-link", id: teamSwitcherTeam.id, isActive: windowLocation.href.includes(`/launchpad/teams/${teamSwitcherTeam.id}`), className: `${settings.prefix}--bmrg-advantage-sidenav-team`, renderIcon: icons.UserMultiple, href: `${baseEnvUrl}/${app}/teams/${teamSwitcherTeam.id}`, onClick: (e) => {
|
|
187
187
|
if (isLaunchpad) {
|
|
188
188
|
handleLaunchpadLink(e);
|
|
189
|
-
history.push(`/
|
|
189
|
+
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
190
190
|
}
|
|
191
191
|
handleTeamClick({
|
|
192
192
|
team: teamSwitcherTeam,
|
|
@@ -176,7 +176,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
if (isLaunchpad && Boolean(history)) {
|
|
179
|
-
history.push(`/
|
|
179
|
+
history.push(`/teams/${team.id}`);
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
182
|
window.open(teamLink({ teamId: team.id }), "_self");
|
|
@@ -170,14 +170,14 @@ function AdvantageSideNav(props) {
|
|
|
170
170
|
homeLink ? (React.createElement(SideNavLink, { "data-testid": "sidenav-home-link", isActive: `${baseEnvUrl}/${app}/`.includes(windowLocation.href), renderIcon: Home, href: homeLink, onClick: (e) => {
|
|
171
171
|
if (isLaunchpad) {
|
|
172
172
|
handleLaunchpadLink(e);
|
|
173
|
-
history.push("/");
|
|
173
|
+
history.push("/launchpad");
|
|
174
174
|
}
|
|
175
175
|
handleHomeClick();
|
|
176
176
|
} }, "Home")) : null,
|
|
177
177
|
teamSwitcherTeam ? (React.createElement(SideNavLink, { title: teamSwitcherTeam.isAccount ? "Account Page" : "Team Page", name: teamSwitcherTeam.name, "data-testid": "sidenav-team-link", id: teamSwitcherTeam.id, isActive: windowLocation.href.includes(`/launchpad/teams/${teamSwitcherTeam.id}`), className: `${prefix}--bmrg-advantage-sidenav-team`, renderIcon: UserMultiple, href: `${baseEnvUrl}/${app}/teams/${teamSwitcherTeam.id}`, onClick: (e) => {
|
|
178
178
|
if (isLaunchpad) {
|
|
179
179
|
handleLaunchpadLink(e);
|
|
180
|
-
history.push(`/
|
|
180
|
+
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
181
181
|
}
|
|
182
182
|
handleTeamClick({
|
|
183
183
|
team: teamSwitcherTeam,
|
|
@@ -167,7 +167,7 @@ function HeaderTeamSwitcher({ analyticsHelpers, baseServicesUrl, createJoinTeamT
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
if (isLaunchpad && Boolean(history)) {
|
|
170
|
-
history.push(`/
|
|
170
|
+
history.push(`/teams/${team.id}`);
|
|
171
171
|
}
|
|
172
172
|
else {
|
|
173
173
|
window.open(teamLink({ teamId: team.id }), "_self");
|
package/package.json
CHANGED