@@ -27,15 +27,18 @@ along with Foobar. If not, see
2727@if (Cuesheet != null )
2828{
2929 <MudForm @ref =" form" Model =" Cuesheet" >
30- <MudTextField @bind-Value =" Cuesheet.Artist" For =" (() => Cuesheet.Artist)" Validation =" _validationService.ValidateProperty" Label =" @_localizer[" Cuesheet artist " ]" Placeholder =" @_localizer[" Enter the cuesheet artist here " ]" Variant =" Variant.Outlined" />
31- <MudTextField @bind-Value =" Cuesheet.Title" For =" (() => Cuesheet.Title)" Validation =" _validationService.ValidateProperty" Label =" @_localizer[" Cuesheet title " ]" Placeholder =" @_localizer[" Enter the cuesheet title here " ]" Variant =" Variant.Outlined" />
30+ <MudTextField @bind-Value =" Cuesheet.Artist" For =" (() => Cuesheet.Artist)" Validation =" _validationService.ValidateProperty" Label =" @_localizer[" Cuesheet artist " ]"
31+ Placeholder =" @_localizer[" Enter the cuesheet artist here " ]" Variant =" Variant.Outlined" />
32+ <MudTextField @bind-Value =" Cuesheet.Title" For =" (() => Cuesheet.Title)" Validation =" _validationService.ValidateProperty" Label =" @_localizer[" Cuesheet title " ]"
33+ Placeholder =" @_localizer[" Enter the cuesheet title here " ]" Variant =" Variant.Outlined" />
3234 @switch(CurrentViewMode)
3335 {
3436 case ViewMode .ImportView :
3537 case ViewMode .DetailView :
36- <FileInput Id =" @fileInputAudiofileId" Label =" @_localizer[" Audiofile " ]" FileName =" @Cuesheet.Audiofile?.Name" OnFileSelected =" OnAudiofileSelected" Error =" @fileInputAudiofileErrorText" Filter =" @String.Join(" , " , Audiofile.AudioCodecs.Select(x => x.MimeType))" DisplayDownloadFile
37- OnDownloadFileClicked =" DownloadAudio" OnFileRenameClicked =" AudioFileRename" FileRenameDisabled =" Cuesheet.Audiofile == null" FileDownloadDisabled =" Cuesheet.Audiofile != null ? Cuesheet.Audiofile.IsContentStreamLoaded == false : true" />
38- <FileInput Label =" @_localizer[" CD Textfile " ]" FileName =" @Cuesheet.CDTextfile?.Name" OnFileSelected =" OnCDTextfileSelected" Filter =" @FileExtensions.CDTextfile" Error =" @fileInputCDTextfileErrorText" OnFileRenameClicked =" CDTextFileRename" FileRenameDisabled =" Cuesheet.CDTextfile == null" />
38+ <FileInput Id =" @fileInputAudiofileId" Label =" @_localizer[" Audiofile " ]" FileName =" @Cuesheet.Audiofile?.Name" OnFileSelected =" OnAudiofileSelected" Error =" @fileInputAudiofileErrorText"
39+ Filter =" @String.Join(" , " , Audiofile.AudioCodecs.Select(x => x.MimeType))" OnFileRenameClicked =" AudioFileRename" FileRenameDisabled =" Cuesheet.Audiofile == null" />
40+ <FileInput Label =" @_localizer[" CD Textfile " ]" FileName =" @Cuesheet.CDTextfile?.Name" OnFileSelected =" OnCDTextfileSelected" Filter =" @FileExtensions.CDTextfile"
41+ Error =" @fileInputCDTextfileErrorText" OnFileRenameClicked =" CDTextFileRename" FileRenameDisabled =" Cuesheet.CDTextfile == null" />
3942 <MudTextField @ref =" catalogueNumberTextField" @bind-Value =" catalogueNumber" For =" (() => Cuesheet.Cataloguenumber)" Validation =" _validationService.ValidateProperty"
4043 Label =" @_localizer[" Cataloguenumber " ]" Placeholder =" @_localizer[" Enter the cuesheet catalogue number here " ]" Variant =" Variant.Outlined"
4144 Mask =" @(new PatternMask(" 00 00000 00000 0 " ))" OnBlur =" CataloguenumberOnBlur" />
@@ -162,15 +165,6 @@ along with Foobar. If not, see
162165 }
163166 }
164167
165- async Task DownloadAudio ()
166- {
167- var contentStream = Cuesheet ? .Audiofile ? .ContentStream ;
168- if (contentStream != null )
169- {
170- await _blazorDownloadFileService .DownloadFile (Cuesheet ? .Audiofile ? .Name , contentStream , Cuesheet ? .Audiofile ? .AudioCodec ? .MimeType );
171- }
172- }
173-
174168 async Task CDTextFileRename ()
175169 {
176170 var newFileName = await ShowInputDialog (Cuesheet ? .CDTextfile ? .Name );
0 commit comments