@boomerang-io/carbon-addons-boomerang-react 4.6.15-beta.3 → 4.6.15-beta.6
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.
|
@@ -160,7 +160,7 @@ function AdvantageSideNav(props) {
|
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
162
|
const handleLaunchpadLink = (event) => {
|
|
163
|
-
event.preventDefault();
|
|
163
|
+
// event.preventDefault();
|
|
164
164
|
//@ts-ignore
|
|
165
165
|
if (Boolean(hamburguerMenu) && hamburguerMenu.className.includes("active")) {
|
|
166
166
|
//@ts-ignore
|
|
@@ -178,15 +178,15 @@ function AdvantageSideNav(props) {
|
|
|
178
178
|
React__default.default.createElement("div", null,
|
|
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
|
-
handleLaunchpadLink(
|
|
182
|
-
history.push("/");
|
|
181
|
+
handleLaunchpadLink();
|
|
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
|
-
handleLaunchpadLink(
|
|
189
|
-
history.push(`/
|
|
188
|
+
handleLaunchpadLink();
|
|
189
|
+
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
190
190
|
}
|
|
191
191
|
handleTeamClick({
|
|
192
192
|
team: teamSwitcherTeam,
|
|
@@ -216,7 +216,7 @@ function AdvantageSideNav(props) {
|
|
|
216
216
|
agentAssistantStudioLink ? (React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-agent-assistant-studio-link", isActive: (agentStudioPath && windowLocation.href.includes(`/launchpad${agentStudioPath}`)) ||
|
|
217
217
|
(agenticAppsPath && windowLocation.href.includes(`/launchpad${agenticAppsPath}`)), renderIcon: icons.IntentRequestCreate, href: agentAssistantStudioLink, onClick: (e) => {
|
|
218
218
|
if (isLaunchpad) {
|
|
219
|
-
handleLaunchpadLink(
|
|
219
|
+
handleLaunchpadLink();
|
|
220
220
|
history.push(agentStudioPath);
|
|
221
221
|
}
|
|
222
222
|
handleAgentAssistantStudioClick();
|
|
@@ -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");
|
|
@@ -151,7 +151,7 @@ function AdvantageSideNav(props) {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
const handleLaunchpadLink = (event) => {
|
|
154
|
-
event.preventDefault();
|
|
154
|
+
// event.preventDefault();
|
|
155
155
|
//@ts-ignore
|
|
156
156
|
if (Boolean(hamburguerMenu) && hamburguerMenu.className.includes("active")) {
|
|
157
157
|
//@ts-ignore
|
|
@@ -169,15 +169,15 @@ function AdvantageSideNav(props) {
|
|
|
169
169
|
React.createElement("div", null,
|
|
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
|
-
handleLaunchpadLink(
|
|
173
|
-
history.push("/");
|
|
172
|
+
handleLaunchpadLink();
|
|
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
|
-
handleLaunchpadLink(
|
|
180
|
-
history.push(`/
|
|
179
|
+
handleLaunchpadLink();
|
|
180
|
+
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
181
181
|
}
|
|
182
182
|
handleTeamClick({
|
|
183
183
|
team: teamSwitcherTeam,
|
|
@@ -207,7 +207,7 @@ function AdvantageSideNav(props) {
|
|
|
207
207
|
agentAssistantStudioLink ? (React.createElement(SideNavLink, { "data-testid": "sidenav-agent-assistant-studio-link", isActive: (agentStudioPath && windowLocation.href.includes(`/launchpad${agentStudioPath}`)) ||
|
|
208
208
|
(agenticAppsPath && windowLocation.href.includes(`/launchpad${agenticAppsPath}`)), renderIcon: IntentRequestCreate, href: agentAssistantStudioLink, onClick: (e) => {
|
|
209
209
|
if (isLaunchpad) {
|
|
210
|
-
handleLaunchpadLink(
|
|
210
|
+
handleLaunchpadLink();
|
|
211
211
|
history.push(agentStudioPath);
|
|
212
212
|
}
|
|
213
213
|
handleAgentAssistantStudioClick();
|
|
@@ -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