parent
02e526c1de
commit
3f308d9a32
|
|
@ -68,15 +68,9 @@ import { sanitize } from '@/helpers/text';
|
|||
import { defineAsyncComponent } from 'vue';
|
||||
import { matomoTrackEvent } from '@/helpers/matomo-client';
|
||||
|
||||
const SubmissionForm = defineAsyncComponent(() =>
|
||||
import('@/components/content-blocks/assignment/SubmissionForm.vue')
|
||||
);
|
||||
const Solution = defineAsyncComponent(() =>
|
||||
import('@/components/content-blocks/Solution.vue')
|
||||
);
|
||||
const SpellCheck = defineAsyncComponent(() =>
|
||||
import('@/components/content-blocks/assignment/SpellCheck.vue')
|
||||
);
|
||||
const SubmissionForm = defineAsyncComponent(() => import('@/components/content-blocks/assignment/SubmissionForm.vue'));
|
||||
const Solution = defineAsyncComponent(() => import('@/components/content-blocks/Solution.vue'));
|
||||
const SpellCheck = defineAsyncComponent(() => import('@/components/content-blocks/assignment/SpellCheck.vue'));
|
||||
|
||||
export default {
|
||||
props: ['value'],
|
||||
|
|
@ -192,7 +186,7 @@ export default {
|
|||
this._save(this.assignment.submission);
|
||||
|
||||
if (this.assignment.submission.text.length > 0) {
|
||||
matomoTrackEvent('Auftrag', 'Text mit Eingabe gespeichert', this.assignment.id);
|
||||
matomoTrackEvent('Auftrag', 'Text mit Eingabe gespeichert', this.assignment.title);
|
||||
}
|
||||
},
|
||||
changeDocumentUrl(documentUrl) {
|
||||
|
|
@ -215,7 +209,7 @@ export default {
|
|||
},
|
||||
},
|
||||
});
|
||||
matomoTrackEvent('Auftrag', 'Ergebnis mit Lehrperson geteilt', this.assignment.id);
|
||||
matomoTrackEvent('Auftrag', 'Ergebnis mit Lehrperson geteilt', this.assignment.title);
|
||||
},
|
||||
reopen() {
|
||||
this.$apollo.mutate({
|
||||
|
|
@ -265,7 +259,7 @@ export default {
|
|||
.then(() => {
|
||||
this.spellcheckLoading = false;
|
||||
});
|
||||
matomoTrackEvent('Auftrag', 'Rechtschreibung geprüft', this.assignment.id);
|
||||
matomoTrackEvent('Auftrag', 'Rechtschreibung geprüft', this.assignment.title);
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ export default {
|
|||
mounted() {
|
||||
if (this.surveyData) {
|
||||
this.loadSurveyFromServer(this.surveyData);
|
||||
matomoTrackEvent('Übung', 'Übung angezeigt', this.id);
|
||||
matomoTrackEvent('Übung', 'Übung angezeigt', this.title);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -202,10 +202,10 @@ export default {
|
|||
},
|
||||
});
|
||||
if (exit) {
|
||||
matomoTrackEvent('Übung', 'Übung erfolgreich abgeschlossen', this.id);
|
||||
matomoTrackEvent('Übung', 'Übung erfolgreich abgeschlossen', this.title);
|
||||
this.$router.go(-1);
|
||||
} else {
|
||||
matomoTrackEvent('Übung', 'Übungsschritt abgeschlossen', this.id);
|
||||
matomoTrackEvent('Übung', 'Übungsschritt abgeschlossen', this.title);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue