File tree Expand file tree Collapse file tree
src/2-Clients/WebApp/Pages/Website/Shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@using CodeBlock .DevKit .AIChatBot .UI .Models
2+ @using CodeBlock .DevKit .Contracts .Services
23@inject LocalizationSettings LocalizationSettings
34@inherits LayoutComponentBase
45@inject ApplicationSettings ApplicationSettings
6+ @inject ISettingAccessorService SettingAccessorService
57
68<HeadContent >
79 <link href =" css/cb.website.spa.@(LocalizationSettings.GetCurrentLanguageDirection().ToLower()).min.css" rel =" stylesheet" />
2931
3032 <Footer />
3133
32- <div class =" chat-widget" >
33- <ChatBotWidget Theme =" ChatBotWidgetTheme.Dark" />
34- </div >
34+ @if (SettingAccessorService .Settings .AIChatBot .ShowChatBotWidgetOnWebsite )
35+ {
36+ <div class =" chat-widget" >
37+ <ChatBotWidget Theme =" ChatBotWidgetTheme.Dark" />
38+ </div >
39+ }
3540 </div >
3641
3742}
You can’t perform that action at this time.
0 commit comments