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 { ...@@ -95,13 +95,11 @@ export default {
topic: "", topic: "",
homework: "", homework: "",
groupNote: "", groupNote: "",
loading: false,
}; };
}, },
methods: { methods: {
handleUpdateAfterCreateOrPatch(itemId, wasCreate) { handleUpdateAfterCreateOrPatch(itemId, wasCreate) {
return (cached, incoming) => { return (cached, incoming) => {
this.loading = false;
for (const object of incoming) { for (const object of incoming) {
console.log("summary: handleUpdateAfterCreateOrPatch", object); console.log("summary: handleUpdateAfterCreateOrPatch", object);
// Replace the current documentation // Replace the current documentation
...@@ -120,8 +118,6 @@ export default { ...@@ -120,8 +118,6 @@ export default {
const homework = this.homework ? { homework: this.homework } : {}; const homework = this.homework ? { homework: this.homework } : {};
const groupNote = this.groupNote ? { groupNote: this.groupNote } : {}; const groupNote = this.groupNote ? { groupNote: this.groupNote } : {};
this.loading = true;
this.createOrPatch([ this.createOrPatch([
{ {
id: this.documentation.id, 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