ЛР4 -лишнее
This commit is contained in:
parent
1126696bb9
commit
72cc3edb7d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user