@@ -24,7 +24,7 @@ along with Foobar. If not, see
2424
2525@if (IsAnalyzed == false )
2626{
27- <TextField Placeholder =" @_localizer[" Please enter text or upload a file for import " ]" Text =" @importText " TextChanged =" ImportTextChanged" />
27+ <TextField Placeholder =" @_localizer[" Please enter text or upload a file for import " ]" Text =" @_importText " TextChanged =" ImportTextChanged" />
2828 <Importprofiles />
2929 <MudFab Color =" Color.Primary" Style =" position:fixed; right:16px; bottom:16px; z-index:2000;" Label =" @_localizer[" Analyze " ]" EndIcon =" @Icons.Material.Outlined.NavigateNext"
3030 OnClick =" Analyze" />
4040 OnClick =" ImportData" />
4141 </MudHidden >
4242 <MudHidden Breakpoint =" Breakpoint.MdAndUp" >
43- <MudMenu @bind-Open =" fapMenuOpened " Style =" position:fixed; left:16px; bottom:72px; z-index:2000;" >
43+ <MudMenu @bind-Open =" _fapMenuOpened " Style =" position:fixed; left:16px; bottom:72px; z-index:2000;" >
4444 <ActivatorContent >
45- <MudFab Color =" Color.Primary" Style =" position:fixed; left:16px; bottom:16px; z-index:2000;" EndIcon =" @Icons.Material.Outlined.Add" OnClick =" () => fapMenuOpened = !fapMenuOpened " />
45+ <MudFab Color =" Color.Primary" Style =" position:fixed; left:16px; bottom:16px; z-index:2000;" EndIcon =" @Icons.Material.Outlined.Add" OnClick =" () => _fapMenuOpened = !_fapMenuOpened " />
4646 </ActivatorContent >
4747 <ChildContent >
4848 <MudMenuItem IconColor =" Color.Warning" Label =" @_localizer[" Back " ]" Icon =" @Icons.Material.Outlined.ArrowBack" OnClick =" ResetAsync" />
5353}
5454
5555@code {
56- // TODO: importing an audiofile doesn't set the audio codec
57- string ? importText ;
58- Boolean fapMenuOpened = false ;
56+ string ? _importText ;
57+ Boolean _fapMenuOpened = false ;
5958
6059 public Boolean IsAnalyzed
6160 {
7877
7978 void ImportTextChanged (string ? newImportText )
8079 {
81- importText = newImportText ;
82- _importManager .ImportData (importText );
80+ _importText = newImportText ;
81+ _importManager .ImportData (_importText );
8382 }
8483
8584 async Task Analyze ()
126125 {
127126 if (_sessionStateContainer .Importfile ? .FileType == ImportFileType .Textfile )
128127 {
129- importText = _sessionStateContainer .Importfile .FileContent ;
128+ _importText = _sessionStateContainer .Importfile .FileContent ;
130129 StateHasChanged ();
131130 }
132131 });
0 commit comments