ЛР4 -лишнее

This commit is contained in:
ityurner02@mail.ru 2023-05-21 17:34:35 +04:00
parent 1126696bb9
commit 72cc3edb7d

View File

@ -21,8 +21,7 @@
collections: [],
URL: "http://localhost:8080/",
collection: new Collection(),
films: [],
selectedFilms: []
films: []
}
},
methods: {
@ -72,12 +71,10 @@
this.collection = { ...collection };
this.collection.status = "edit";
}
this.selectedFilms = this.collection.filmIds;
document.getElementById("openModalForAdd").style.display = "block";
},
closeModalForAdd() {
document.getElementById("openModalForAdd").style.display = "none";
this.selectedFilms = [];
this.collection = new Collection();
},
openModal(status, collection = null) {