1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add suggested changes

This commit is contained in:
LJQ 2024-08-18 13:42:07 +08:00 committed by Bill Thornton
parent ab0df4dcf0
commit 5d8d6fdb28
4 changed files with 7 additions and 4 deletions

View file

@ -29,7 +29,8 @@ function downloadRemoteLyrics(context, id) {
const api = toApi(ServerConnections.getApiClient(currentItem.ServerId));
const lyricsApi = getLyricsApi(api);
lyricsApi.downloadRemoteLyrics({
itemId: currentItem.Id, lyricId: id
itemId: currentItem.Id,
lyricId: id
}).then(function () {
hasChanges = true;
@ -289,6 +290,8 @@ function onDeleteLyrics(e) {
const context = dom.parentWithClass(e.target, 'formDialogContent');
const apiClient = ServerConnections.getApiClient(currentItem.ServerId);
reload(context, apiClient, currentItem.Id);
}).catch(() => {
console.warn('Failed to delete lyrics for', currentItem.Name);
});
}

View file

@ -24,4 +24,4 @@
${NoLyricsSearchResultsFound}
</div>
</div>
</div>
</div>

View file

@ -7,4 +7,4 @@
<div class="dialogContentInner dialog-content-centered">
<div class="lyricsPreview" style="margin-bottom:2em;"></div>
</div>
</div>
</div>

View file

@ -167,5 +167,5 @@ export function show(options) {
}
export default {
show: show
show
};