@boomerang-io/carbon-addons-boomerang-react 4.6.11-beta.21 → 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.
|
@@ -152,7 +152,9 @@ function AdvantageSideNav(props) {
|
|
|
152
152
|
// assistantLink &&
|
|
153
153
|
React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-assistant-link", className: !enableChatButton ? `${settings.prefix}--bmrg-advantage-sidenav__inactive-link` : "", disabled: Boolean(!enableChatButton),
|
|
154
154
|
// isActive={assistantLink }
|
|
155
|
-
renderIcon: icons.ChatBot,
|
|
155
|
+
renderIcon: icons.ChatBot,
|
|
156
|
+
// href={enableChatButton}
|
|
157
|
+
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat"));
|
|
156
158
|
const catalogNavlink = navigation?.platform?.catalog?.url;
|
|
157
159
|
const adminNavlink = navigation?.platform?.admin?.url;
|
|
158
160
|
const showSecondDivider = (!isPartnerUser && showChatButton) ||
|
|
@@ -143,7 +143,9 @@ function AdvantageSideNav(props) {
|
|
|
143
143
|
// assistantLink &&
|
|
144
144
|
React.createElement(SideNavLink, { "data-testid": "sidenav-assistant-link", className: !enableChatButton ? `${prefix}--bmrg-advantage-sidenav__inactive-link` : "", disabled: Boolean(!enableChatButton),
|
|
145
145
|
// isActive={assistantLink }
|
|
146
|
-
renderIcon: ChatBot,
|
|
146
|
+
renderIcon: ChatBot,
|
|
147
|
+
// href={enableChatButton}
|
|
148
|
+
onClick: enableChatButton ? handleAssistantClick : (e) => e.preventDefault() }, "Chat"));
|
|
147
149
|
const catalogNavlink = navigation?.platform?.catalog?.url;
|
|
148
150
|
const adminNavlink = navigation?.platform?.admin?.url;
|
|
149
151
|
const showSecondDivider = (!isPartnerUser && showChatButton) ||
|
package/package.json
CHANGED