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

Rename class name for collectionEditor & add method show

This commit is contained in:
grafixeyehero 2022-08-06 02:50:41 +03:00
parent 87ebe89196
commit bdff9b14f1
4 changed files with 12 additions and 9 deletions

View file

@ -9,9 +9,10 @@ const NewCollection: FunctionComponent = () => {
const btnNewCollection = element.current?.querySelector('.btnNewCollection') as HTMLButtonElement;
if (btnNewCollection) {
btnNewCollection.addEventListener('click', () => {
import('../../components/collectionEditor/collectionEditor').then(({ default: collectionEditor }) => {
import('../../components/collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
const serverId = window.ApiClient.serverId();
new collectionEditor({
const collectionEditor = new CollectionEditor();
collectionEditor.show({
items: [],
serverId: serverId
});