diff --git a/BeWo/AI/View/AiTranskriptionView.xaml b/BeWo/AI/View/AiTranskriptionView.xaml index d90155eb9..50d01ae3d 100644 --- a/BeWo/AI/View/AiTranskriptionView.xaml +++ b/BeWo/AI/View/AiTranskriptionView.xaml @@ -244,7 +244,16 @@ VerticalScrollBarVisibility="Auto" /> - + + + Dieses System verwendet KI. + KI-generierte Inhalte sind zu prüfen. + BeWoAppInfo.BeWoAppVersion.ToString(); public static int RenderTier = 0; diff --git a/BeWo/Converter/UserPermission2BoolConverter.cs b/BeWo/Converter/UserPermission2BoolConverter.cs index cf5c73043..eea34e3cd 100644 --- a/BeWo/Converter/UserPermission2BoolConverter.cs +++ b/BeWo/Converter/UserPermission2BoolConverter.cs @@ -14,6 +14,11 @@ namespace BeWo.Converter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { +#if DEBUG + if (BeWoApp.IsInDesignMode) + return true; +#endif + try { if (value is UserRightType type) @@ -36,6 +41,9 @@ namespace BeWo.Converter if (setting == SettingsKeys.ShowGkvBzUrbelege) return BeWoApp.Mandator.ShowGkvBzUrbelege; + + if (setting == SettingsKeys.ShowAI) + return BeWoApp.AppSettings.ShowAI; } } catch (Exception) diff --git a/BeWo/Core/Commands/CommandFactory.cs b/BeWo/Core/Commands/CommandFactory.cs index 9852acdb8..46d22dffd 100644 --- a/BeWo/Core/Commands/CommandFactory.cs +++ b/BeWo/Core/Commands/CommandFactory.cs @@ -14,7 +14,7 @@ namespace BeWo.Core.Commands public static DelegateCommand GetAiViewCommand(Action openView, UserRightType? userRightType, Func additionalCheckup = null, bool? useCommandManager = null) { bool canExecute() => - (BeWoApp.AppSettings?.ModuleAiEnabled ?? BeWoApp.AppSettings?.ShowAI ?? false) && + (BeWoApp.AppSettings?.ShowAI ?? false) && (userRightType is null || BeWoApp.HasLoggedOnUserRight(userRightType.Value)) && (additionalCheckup is null || additionalCheckup()); diff --git a/BeWo/View/Detail/AI/AiConversationChatView.xaml b/BeWo/View/Detail/AI/AiConversationChatView.xaml index 31f9a14a5..d3d6efbce 100644 --- a/BeWo/View/Detail/AI/AiConversationChatView.xaml +++ b/BeWo/View/Detail/AI/AiConversationChatView.xaml @@ -248,7 +248,6 @@ - @@ -303,16 +302,16 @@ - - + - Bitte formulieren Sie eine Frage, um einen neuen Chat zu beginnen. - - Weitere Details erfahren Sie in der Hilfe. - - (i) + Bitte formulieren Sie eine Frage, um einen neuen Chat zu beginnen. + Weitere Details erfahren Sie in der Hilfe. + (i) @@ -414,6 +413,10 @@ FontWeight="Medium" Style="{StaticResource NavigationToolbarButtonStyle}" Visibility="Collapsed" /> + + + Dieses System verwendet KI. + KI-generierte Inhalte sind zu prüfen. diff --git a/BeWo/View/Detail/AI/AiPromptbausteinActionResultView.xaml b/BeWo/View/Detail/AI/AiPromptbausteinActionResultView.xaml index 728bd5f5e..0269921d4 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinActionResultView.xaml +++ b/BeWo/View/Detail/AI/AiPromptbausteinActionResultView.xaml @@ -19,20 +19,39 @@ + + + + + Dieses System verwendet KI. + KI-generierte Inhalte sind zu prüfen. + + + diff --git a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml index f36c2b3c9..a562eec23 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml +++ b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml @@ -52,27 +52,7 @@ Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right" - Orientation="Horizontal"> - - -