Доработан поиск и добавление треков

This commit is contained in:
FrigaT
2026-04-14 22:26:58 +03:00
parent 0381ef74ab
commit 6ae49faf15
16 changed files with 92 additions and 99 deletions

View File

@@ -9,7 +9,8 @@
<MudItem xs="12" sm="10">
<MudTextField @bind-Value="_trackLink" Label="Ссылка на трек Яндекс.Музыки"
Variant="Variant.Outlined" FullWidth="true"
Placeholder="https://music.yandex.ru/album/2488464/track/21696942" />
Placeholder="https://music.yandex.ru/album/2488464/track/21696942"
OnKeyUp="@(async (e) => { if (e.Key == "Enter") await AddTrackByLink(); })" />
</MudItem>
<MudItem xs="12" sm="2">
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="AddTrackByLink"
@@ -25,9 +26,6 @@
</MudButton>
</MudItem>
</MudGrid>
<MudText Typo="Typo.body2" Class="mt-2" Color="Color.Secondary">
Поддерживаются ссылки вида: https://music.yandex.ru/album/12345/track/67890
</MudText>
</MudTabPanel>
<MudTabPanel Text="Поиск" Style="padding: 16px;">
<AddTrackBySearch OnAddTrack="AddTrackById"