mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-10 11:13:47 +00:00
Added enterprise-managed activation for assistant plugins (#939)
This commit is contained in:
1 parent
3940ad7f29
commit
c9b7f224cc
13 files changed
+462
-17
No files matched your search
@@ -65,6 +65,15 @@
|
||||
<MudIcon Icon="@Icons.Material.Filled.Business" Size="Size.Small" Color="@state.SourceColor" />
|
||||
<MudText Typo="Typo.body2">@T("Enterprise approval is active")</MudText>
|
||||
</MudStack>
|
||||
|
||||
@if (state.IsActivationEnforcedByOrganization)
|
||||
{
|
||||
<MudDivider Vertical="@true" FlexItem="@true" />
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
|
||||
<MudIcon Icon="@Icons.Material.Filled.Lock" Size="Size.Small" Color="Color.Success" />
|
||||
<MudText Typo="Typo.body2">@T("Your organization requires this assistant to stay enabled")</MudText>
|
||||
</MudStack>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -176,6 +185,21 @@
|
||||
<td><MudText Typo="Typo.body2">@state.EnterpriseApproval.Comment</MudText></td>
|
||||
</tr>
|
||||
}
|
||||
@if (state.IsActivationEnforcedByOrganization || state.IsActivatedByOrganizationDefault)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
<MudText Typo="Typo.body2"><b>@T("Activation")</b></MudText>
|
||||
</td>
|
||||
<td>
|
||||
<MudText Typo="Typo.body2">
|
||||
@(state.IsActivationEnforcedByOrganization
|
||||
? T("Required by your organization")
|
||||
: T("Enabled by your organization, you may switch it off"))
|
||||
</MudText>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
@if (state.Audit is not null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user