@boomerang-io/carbon-addons-boomerang-react 4.6.11-beta.20 → 4.6.11-beta.22
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.
|
@@ -111,16 +111,14 @@ function AdvantageSideNav(props) {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
const handleAssistantClick = () => {
|
|
114
|
-
console.log("assistantLink checking", assistantLink);
|
|
115
114
|
let redirectLink = `${appLink.newChatRedirect()}?teamName=${teamSwitcherTeam.name}&teamId=${teamSwitcherTeam.id}`;
|
|
116
|
-
console.log("redirectLink checking", redirectLink);
|
|
117
115
|
triggerEvent &&
|
|
118
116
|
triggerEvent({
|
|
119
117
|
action: "Clicked on SideNav Assistant link",
|
|
120
118
|
category: "Sidenav",
|
|
119
|
+
destinationPath: redirectLink,
|
|
121
120
|
});
|
|
122
|
-
|
|
123
|
-
// window.open(assistantLink, "_self", "noopener,noreferrer");
|
|
121
|
+
window.open(redirectLink, "_self", "noopener,noreferrer");
|
|
124
122
|
};
|
|
125
123
|
const handleCreateJoinClick = () => {
|
|
126
124
|
triggerEvent &&
|
|
@@ -156,7 +154,7 @@ function AdvantageSideNav(props) {
|
|
|
156
154
|
// isActive={assistantLink }
|
|
157
155
|
renderIcon: icons.ChatBot,
|
|
158
156
|
// href={enableChatButton}
|
|
159
|
-
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat
|
|
157
|
+
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat"));
|
|
160
158
|
const catalogNavlink = navigation?.platform?.catalog?.url;
|
|
161
159
|
const adminNavlink = navigation?.platform?.admin?.url;
|
|
162
160
|
const showSecondDivider = (!isPartnerUser && showChatButton) ||
|
|
@@ -102,16 +102,14 @@ function AdvantageSideNav(props) {
|
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
104
|
const handleAssistantClick = () => {
|
|
105
|
-
console.log("assistantLink checking", assistantLink);
|
|
106
105
|
let redirectLink = `${appLink.newChatRedirect()}?teamName=${teamSwitcherTeam.name}&teamId=${teamSwitcherTeam.id}`;
|
|
107
|
-
console.log("redirectLink checking", redirectLink);
|
|
108
106
|
triggerEvent &&
|
|
109
107
|
triggerEvent({
|
|
110
108
|
action: "Clicked on SideNav Assistant link",
|
|
111
109
|
category: "Sidenav",
|
|
110
|
+
destinationPath: redirectLink,
|
|
112
111
|
});
|
|
113
|
-
|
|
114
|
-
// window.open(assistantLink, "_self", "noopener,noreferrer");
|
|
112
|
+
window.open(redirectLink, "_self", "noopener,noreferrer");
|
|
115
113
|
};
|
|
116
114
|
const handleCreateJoinClick = () => {
|
|
117
115
|
triggerEvent &&
|
|
@@ -147,7 +145,7 @@ function AdvantageSideNav(props) {
|
|
|
147
145
|
// isActive={assistantLink }
|
|
148
146
|
renderIcon: ChatBot,
|
|
149
147
|
// href={enableChatButton}
|
|
150
|
-
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat
|
|
148
|
+
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat"));
|
|
151
149
|
const catalogNavlink = navigation?.platform?.catalog?.url;
|
|
152
150
|
const adminNavlink = navigation?.platform?.admin?.url;
|
|
153
151
|
const showSecondDivider = (!isPartnerUser && showChatButton) ||
|
package/package.json
CHANGED