mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 09:10:20 +00:00
Show different icon for enterprise profiles
This commit is contained in:
parent
45bf81f927
commit
f7507b0b53
@ -19,7 +19,7 @@
|
|||||||
<MudDivider/>
|
<MudDivider/>
|
||||||
@foreach (var profile in this.SettingsManager.ConfigurationData.Profiles.GetAllProfiles())
|
@foreach (var profile in this.SettingsManager.ConfigurationData.Profiles.GetAllProfiles())
|
||||||
{
|
{
|
||||||
<MudMenuItem Icon="@Icons.Material.Filled.Person4" OnClick="() => this.SelectionChanged(profile)">
|
<MudMenuItem Icon="@this.ProfileIcon(profile)" OnClick="() => this.SelectionChanged(profile)">
|
||||||
@profile.Name
|
@profile.Name
|
||||||
</MudMenuItem>
|
</MudMenuItem>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,14 @@ public partial class ProfileSelection : MSGComponentBase
|
|||||||
|
|
||||||
private string MarginClass => $"{this.MarginLeft} {this.MarginRight}";
|
private string MarginClass => $"{this.MarginLeft} {this.MarginRight}";
|
||||||
|
|
||||||
|
private string ProfileIcon(Profile profile)
|
||||||
|
{
|
||||||
|
if (profile.IsEnterpriseConfiguration)
|
||||||
|
return Icons.Material.Filled.Business;
|
||||||
|
|
||||||
|
return Icons.Material.Filled.Person4;
|
||||||
|
}
|
||||||
|
|
||||||
private async Task SelectionChanged(Profile profile)
|
private async Task SelectionChanged(Profile profile)
|
||||||
{
|
{
|
||||||
this.CurrentProfile = profile;
|
this.CurrentProfile = profile;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user