From 9cbe875a1e8c11c9949eb31d2a4625cff27a22eb Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 5 Jan 2025 13:48:39 +0100 Subject: [PATCH] Refactored rewrite assistant settings --- .../Settings/SettingsPanelRewrite.razor | 17 +++++++++++++++++ .../Settings/SettingsPanelRewrite.razor.cs | 3 +++ app/MindWork AI Studio/Pages/Settings.razor | 16 +--------------- 3 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor create mode 100644 app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor.cs diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor new file mode 100644 index 00000000..fe911994 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor @@ -0,0 +1,17 @@ +@using AIStudio.Settings +@inherits SettingsPanelBase + + + + + + @if (this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage is CommonLanguages.OTHER) + { + + } + + + + + + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor.cs new file mode 100644 index 00000000..ca72bef5 --- /dev/null +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelRewrite.razor.cs @@ -0,0 +1,3 @@ +namespace AIStudio.Components.Settings; + +public partial class SettingsPanelRewrite : SettingsPanelBase; \ No newline at end of file diff --git a/app/MindWork AI Studio/Pages/Settings.razor b/app/MindWork AI Studio/Pages/Settings.razor index b64b5208..bcfe230d 100644 --- a/app/MindWork AI Studio/Pages/Settings.razor +++ b/app/MindWork AI Studio/Pages/Settings.razor @@ -415,21 +415,7 @@ - - - - - @if (this.SettingsManager.ConfigurationData.RewriteImprove.PreselectedTargetLanguage is CommonLanguages.OTHER) - { - - } - - - - - - - +