mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add show method for PlaylistEditor Class
This commit is contained in:
parent
675a59adc4
commit
d702ad938a
7 changed files with 37 additions and 11 deletions
|
@ -401,10 +401,15 @@ function onNewItemClick() {
|
|||
const instance = this;
|
||||
|
||||
import('../components/playlisteditor/playlisteditor').then(({ default: PlaylistEditor }) => {
|
||||
new PlaylistEditor({
|
||||
const playlistEditor = new PlaylistEditor();
|
||||
playlistEditor.show({
|
||||
items: [],
|
||||
serverId: instance.params.serverId
|
||||
}).catch(() => {
|
||||
// Dialog closed
|
||||
});
|
||||
}).catch(err => {
|
||||
console.error('[onNewItemClick] failed to load playlist editor', err);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue