Skip to content
Snippets Groups Projects
Commit 61ef4776 authored by Julian's avatar Julian
Browse files

Keep track of the updating status inside the coursebook

parent db9a7757
No related branches found
No related tags found
No related merge requests found
import {ERROR, SAVED, UPDATING, CHANGES} from "../../alsijil/UpdateStatuses.js";
export default {
methods: {
notifyChange(event) {
alert("Probably save the data");
console.log(event);
processDataChange(event) {
this.status = CHANGES;
// alert("Probably save the data");
console.log(event);
setTimeout(() => {
this.status = UPDATING;
}, 500)
setTimeout(() => {
this.status = SAVED;
}, 1000)
},
},
props: [],
name: "course-book",
data: () => {
return {
status: SAVED,
"lesson":{
"teachers":[
{
......@@ -159,16 +171,16 @@ export default {
:period="item.period_formatted"
:personal-notes="item.personal_notes"
@change-personal-notes="notifyChange"
@change-personal-notes="processDataChange"
:date="item.date"
@change-date="notifyChange"
@change-date="processDataChange"
:topic="item.topic"
@change-topic="notifyChange"
@change-topic="processDataChange"
:homework="item.homework"
@change-homework="notifyChange"
@change-homework="processDataChange"
:group-note="item.group_note"
@change-group-note="createNotification('course-book');"
......
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