feat: make the file name in edit mode be readonly instead of disabled

This commit is contained in:
2025-01-24 15:32:54 +07:00
parent c46333eb99
commit 7ac609e9f6
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
<ItemGroup>
<PackageReference Include="BlazorMonaco" Version="3.3.0" />
<PackageReference Include="Docker.DotNet" Version="3.125.15" />
<PackageReference Include="MudBlazor" Version="8.0.0" />
<PackageReference Include="NetCore.AutoRegisterDi" Version="2.2.1" />
</ItemGroup>

View File

@@ -5,7 +5,7 @@
<MudTextField @bind-Value="FileName" Label="File name" Variant="Variant.Outlined"
Style="margin-bottom: 8px;"
ShrinkLabel="true"
Disabled="@(!IsNew)"></MudTextField>
ReadOnly="@(!IsNew)"></MudTextField>
<MudText Typo="Typo.caption" Style="padding-left: 18px; padding-bottom: 8px;">File content</MudText>
<StandaloneCodeEditor @ref="_codeEditor"
ConstructionOptions="@EditorConstructionOptions"