Merged in develop (pull request #146)

Develop
This commit is contained in:
Lorenz Padberg 2024-03-20 20:02:53 +00:00
commit 9ca85fbcfe
3 changed files with 9 additions and 9 deletions

View File

@ -134,7 +134,6 @@ import {
SelectionHandlerType,
} from '@/helpers/highlight';
import { graphql } from '@/__generated__';
import log from 'loglevel';
import highlightSidebar from '@/helpers/highlight-sidebar';
import { doUpdateHighlight } from '@/graphql/mutations';
import { AddContentHighlightArgument } from '@/__generated__/graphql';
@ -315,8 +314,6 @@ const createHighlight = createHighlightCurry({
const isNested = computed(() => props.contentBlock.root); // if it's nested, a the parent has the root propert
onMounted(() => {
log.debug('onMounted ContentBlock called');
const element = contentBlockDiv.value;
if (element !== null) {

View File

@ -42,10 +42,11 @@
<p
class="assignment__feedback"
v-if="assignment.submission.submissionFeedback"
v-if="assignment.submission?.submissionFeedback"
v-html="feedbackText"
/>
</template>
<template v-if="!isStudent && assignment.id">
<router-link
:to="{ name: 'submissions', params: { id: assignment.id } }"
@ -264,9 +265,12 @@ const unmark = () => {
onResult(async () => {
const { assignment: loadedAssignment } = result.value;
assignment.value = {
...loadedAssignment,
};
await nextTick();
assignment.value.submission = Object.assign(initialSubmission, assignment.value.submission);
if (assignmentDiv.value) {

View File

@ -1,6 +1,5 @@
import { ContentBlockNode, HighlightNode } from '@/__generated__/graphql';
import { makeVar, InMemoryCache } from '@apollo/client/core';
import log from 'loglevel';
const showNavigationSidebarVar = makeVar(false);
const showProfileSidebarVar = makeVar(false);
@ -12,7 +11,7 @@ const languageVar = makeVar('de');
const idToRefFactory =
(__typename: string) =>
(_, { args, toReference }) => {
log.debug(`Referencing ${__typename} with ${args.id}`);
//log.debug(`Referencing ${__typename} with ${args.id}`);
return toReference({
__typename,
id: args.id,