Migration collectionEditor and playlisteditor to ES6 modules

This commit is contained in:
grafixeyehero 2020-06-14 02:28:15 +03:00
parent a27eae98e5
commit e81a7dbb8f
9 changed files with 217 additions and 188 deletions

View file

@ -589,7 +589,7 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
require(['playlistEditor'], function (playlistEditor) {
getSaveablePlaylistItems().then(function (items) {
var serverId = items.length ? items[0].ServerId : ApiClient.serverId();
new playlistEditor().show({
new playlistEditor.default().show({
items: items.map(function (i) {
return i.Id;
}),