Moved the add and import buttons of the settings dialogs into their footer (#1060)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Paul KoudelkaandThorsten Sommer authored and GitHub committed 2026-10-20 08:35:44 +02:00
1 parent f26d132d56
commit 6b42af864c
13 files changed
+409 -320

No files matched your search

@@ -1,7 +1,7 @@
@using AIStudio.Tools.PluginSystem
@inherits SettingsDialogBase
<MudDialog>
<MudDialog ContentClass="dialog-content-aligned" ActionsClass="dialog-actions-aligned">
<TitleContent>
<MudText Typo="Typo.h6" Class="d-flex align-center">
<MudIcon Icon="@Icons.Material.Filled.RateReview" Class="mr-2" />
@@ -81,15 +81,16 @@
@T("No chat templates configured yet.")
</MudText>
}
<MudStack Row="true" Wrap="Wrap.Wrap" Class="mt-3 mb-6">
</DialogContent>
<DialogActions>
@* In the footer, adding and importing stay in reach however long the table grows: *@
<MudStack Row="true" Wrap="Wrap.Wrap">
<MudButton Variant="Variant.Filled" Color="@Color.Primary" StartIcon="@Icons.Material.Filled.AddRoad" OnClick="@this.AddChatTemplate">
@T("Add Chat Template")
</MudButton>
<LockableButton Text="@T("Import Chat Template")" IsLocked="@(() => !this.SettingsManager.ConfigurationData.App.CanImportConfigurationSnippet(PluginConfigurationObjectType.CHAT_TEMPLATE))" Icon="@Icons.Material.Filled.FileDownload" OnClickAsync="@this.ImportChatTemplate" ButtonVariant="Variant.Outlined" NoMargin="true" />
</MudStack>
</DialogContent>
<DialogActions>
<MudSpacer/>
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
@T("Close")
</MudButton>
@@ -1,6 +1,6 @@
@inherits SettingsDialogBase
<MudDialog>
<MudDialog ContentClass="dialog-content-aligned" ActionsClass="dialog-actions-aligned">
<TitleContent>
<PreviewBeta/>
<MudText Typo="Typo.h6" Class="d-flex align-center">
@@ -12,6 +12,9 @@
<DataSourceManagement/>
</DialogContent>
<DialogActions>
@* In the footer, adding and importing stay in reach however long the table grows: *@
<DataSourceAddButtons/>
<MudSpacer/>
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
@T("Close")
</MudButton>
@@ -1,7 +1,7 @@
@using AIStudio.Tools.PluginSystem
@inherits SettingsDialogBase
<MudDialog>
<MudDialog ContentClass="dialog-content-aligned" ActionsClass="dialog-actions-aligned">
<TitleContent>
<MudText Typo="Typo.h6" Class="d-flex align-center">
<MudIcon Icon="@Icons.Material.Filled.Person4" Class="mr-2" />
@@ -64,15 +64,16 @@
@T("No profiles configured yet.")
</MudText>
}
<MudStack Row="true" Wrap="Wrap.Wrap" Class="mt-3 mb-6">
</DialogContent>
<DialogActions>
@* In the footer, adding and importing stay in reach however long the table grows: *@
<MudStack Row="true" Wrap="Wrap.Wrap">
<MudButton Variant="Variant.Filled" Color="@Color.Primary" StartIcon="@Icons.Material.Filled.AddRoad" OnClick="@this.AddProfile">
@T("Add Profile")
</MudButton>
<LockableButton Text="@T("Import Profile")" IsLocked="@(() => !this.SettingsManager.ConfigurationData.App.CanImportConfigurationSnippet(PluginConfigurationObjectType.PROFILE))" Icon="@Icons.Material.Filled.FileDownload" OnClickAsync="@this.ImportProfile" ButtonVariant="Variant.Outlined" NoMargin="true" />
</MudStack>
</DialogContent>
<DialogActions>
<MudSpacer/>
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
@T("Close")
</MudButton>