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