@boomerang-io/carbon-addons-boomerang-react 4.6.15-beta.7 → 4.6.15-beta.9
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
|
-
|
|
163
|
+
event.preventDefault();
|
|
164
164
|
//@ts-ignore
|
|
165
165
|
if (Boolean(hamburguerMenu) && hamburguerMenu.className.includes("active")) {
|
|
166
166
|
//@ts-ignore
|
|
@@ -177,20 +177,16 @@ function AdvantageSideNav(props) {
|
|
|
177
177
|
}, ...rest }, React__default.default.createElement(react.SideNavItems, null,
|
|
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
|
-
e.preventDefault(); // stop hard refresh
|
|
181
180
|
if (isLaunchpad) {
|
|
182
|
-
|
|
183
|
-
history.push(
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
handleHomeClick();
|
|
187
|
-
history.push(homeLink); // fallback to normal homeLink }
|
|
181
|
+
//handleLaunchpadLink(e);
|
|
182
|
+
history.push(`${baseEnvUrl}/launchpad}/`);
|
|
188
183
|
}
|
|
184
|
+
handleHomeClick();
|
|
189
185
|
} }, "Home")) : null,
|
|
190
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) => {
|
|
191
187
|
if (isLaunchpad) {
|
|
192
|
-
handleLaunchpadLink();
|
|
193
|
-
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
188
|
+
//handleLaunchpadLink(e);
|
|
189
|
+
history.push(`/launchpad/teams/${teamSwitcherTeam.id}`);
|
|
194
190
|
}
|
|
195
191
|
handleTeamClick({
|
|
196
192
|
team: teamSwitcherTeam,
|
|
@@ -220,7 +216,7 @@ function AdvantageSideNav(props) {
|
|
|
220
216
|
agentAssistantStudioLink ? (React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-agent-assistant-studio-link", isActive: (agentStudioPath && windowLocation.href.includes(`/launchpad${agentStudioPath}`)) ||
|
|
221
217
|
(agenticAppsPath && windowLocation.href.includes(`/launchpad${agenticAppsPath}`)), renderIcon: icons.IntentRequestCreate, href: agentAssistantStudioLink, onClick: (e) => {
|
|
222
218
|
if (isLaunchpad) {
|
|
223
|
-
handleLaunchpadLink();
|
|
219
|
+
handleLaunchpadLink(e);
|
|
224
220
|
history.push(agentStudioPath);
|
|
225
221
|
}
|
|
226
222
|
handleAgentAssistantStudioClick();
|
|
@@ -151,7 +151,7 @@ function AdvantageSideNav(props) {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
const handleLaunchpadLink = (event) => {
|
|
154
|
-
|
|
154
|
+
event.preventDefault();
|
|
155
155
|
//@ts-ignore
|
|
156
156
|
if (Boolean(hamburguerMenu) && hamburguerMenu.className.includes("active")) {
|
|
157
157
|
//@ts-ignore
|
|
@@ -168,20 +168,16 @@ function AdvantageSideNav(props) {
|
|
|
168
168
|
}, ...rest }, React.createElement(SideNavItems, null,
|
|
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
|
-
e.preventDefault(); // stop hard refresh
|
|
172
171
|
if (isLaunchpad) {
|
|
173
|
-
|
|
174
|
-
history.push(
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
handleHomeClick();
|
|
178
|
-
history.push(homeLink); // fallback to normal homeLink }
|
|
172
|
+
//handleLaunchpadLink(e);
|
|
173
|
+
history.push(`${baseEnvUrl}/launchpad}/`);
|
|
179
174
|
}
|
|
175
|
+
handleHomeClick();
|
|
180
176
|
} }, "Home")) : null,
|
|
181
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) => {
|
|
182
178
|
if (isLaunchpad) {
|
|
183
|
-
handleLaunchpadLink();
|
|
184
|
-
history.push(`/teams/${teamSwitcherTeam.id}`);
|
|
179
|
+
//handleLaunchpadLink(e);
|
|
180
|
+
history.push(`/launchpad/teams/${teamSwitcherTeam.id}`);
|
|
185
181
|
}
|
|
186
182
|
handleTeamClick({
|
|
187
183
|
team: teamSwitcherTeam,
|
|
@@ -211,7 +207,7 @@ function AdvantageSideNav(props) {
|
|
|
211
207
|
agentAssistantStudioLink ? (React.createElement(SideNavLink, { "data-testid": "sidenav-agent-assistant-studio-link", isActive: (agentStudioPath && windowLocation.href.includes(`/launchpad${agentStudioPath}`)) ||
|
|
212
208
|
(agenticAppsPath && windowLocation.href.includes(`/launchpad${agenticAppsPath}`)), renderIcon: IntentRequestCreate, href: agentAssistantStudioLink, onClick: (e) => {
|
|
213
209
|
if (isLaunchpad) {
|
|
214
|
-
handleLaunchpadLink();
|
|
210
|
+
handleLaunchpadLink(e);
|
|
215
211
|
history.push(agentStudioPath);
|
|
216
212
|
}
|
|
217
213
|
handleAgentAssistantStudioClick();
|
package/package.json
CHANGED