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:
parent
ab0df4dcf0
commit
5d8d6fdb28
4 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
${NoLyricsSearchResultsFound}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
<div class="dialogContentInner dialog-content-centered">
|
||||
<div class="lyricsPreview" style="margin-bottom:2em;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -167,5 +167,5 @@ export function show(options) {
|
|||
}
|
||||
|
||||
export default {
|
||||
show: show
|
||||
show
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue