Add suggested changes
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user