Skip to content
Snippets Groups Projects
Commit 00b2ced4 authored by permcu's avatar permcu
Browse files

Remove loading state handing

Is now done in loadingMixin of createOrPatchMixin.
parent 9d566f5f
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
......@@ -95,13 +95,11 @@ export default {
topic: "",
homework: "",
groupNote: "",
loading: false,
};
},
methods: {
handleUpdateAfterCreateOrPatch(itemId, wasCreate) {
return (cached, incoming) => {
this.loading = false;
for (const object of incoming) {
console.log("summary: handleUpdateAfterCreateOrPatch", object);
// Replace the current documentation
......@@ -120,8 +118,6 @@ export default {
const homework = this.homework ? { homework: this.homework } : {};
const groupNote = this.groupNote ? { groupNote: this.groupNote } : {};
this.loading = true;
this.createOrPatch([
{
id: this.documentation.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment