mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:39:47 +00:00
Refactor Assistants to inherit from MSGComponentBase
This commit is contained in:
parent
6e0deb4e64
commit
8914e20a83
@ -1,6 +1,7 @@
|
|||||||
@using AIStudio.Dialogs.Settings
|
@using AIStudio.Dialogs.Settings
|
||||||
@using AIStudio.Settings.DataModel
|
@using AIStudio.Settings.DataModel
|
||||||
@attribute [Route(Routes.ASSISTANTS)]
|
@attribute [Route(Routes.ASSISTANTS)]
|
||||||
|
@inherits MSGComponentBase
|
||||||
|
|
||||||
<div class="inner-scrolling-context">
|
<div class="inner-scrolling-context">
|
||||||
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
|
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
using AIStudio.Settings;
|
using AIStudio.Components;
|
||||||
|
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
|
|
||||||
namespace AIStudio.Pages;
|
namespace AIStudio.Pages;
|
||||||
|
|
||||||
public partial class Assistants : ComponentBase
|
public partial class Assistants : MSGComponentBase
|
||||||
{
|
{
|
||||||
[Inject]
|
#region Overrides of MSGComponentBase
|
||||||
public SettingsManager SettingsManager { get; set; } = null!;
|
|
||||||
|
public override string ComponentName => nameof(Assistants);
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user