Clean up code
This commit is contained in:
parent
97bea4289e
commit
7c002dcf36
|
|
@ -10,6 +10,7 @@
|
||||||
<h3 id="objectives">Lernziele</h3>
|
<h3 id="objectives">Lernziele</h3>
|
||||||
<objective-group v-for="group in module.objectiveGroups" :key="group.id" :group="group"></objective-group>
|
<objective-group v-for="group in module.objectiveGroups" :key="group.id" :group="group"></objective-group>
|
||||||
|
|
||||||
|
|
||||||
<chapter :chapter="chapter" :index="index" v-for="(chapter, index) in module.chapters" :key="chapter.id"></chapter>
|
<chapter :chapter="chapter" :index="index" v-for="(chapter, index) in module.chapters" :key="chapter.id"></chapter>
|
||||||
<h3 id="objectives-confirm">Alles klar?</h3>
|
<h3 id="objectives-confirm">Alles klar?</h3>
|
||||||
<objective-group-control
|
<objective-group-control
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
</visibility-action>
|
</visibility-action>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4>{{group.displayTitle}} {{group.id}}</h4>
|
<h4>{{group.displayTitle}}</h4>
|
||||||
|
|
||||||
<ul class="objective-group__objective-list">
|
<ul class="objective-group__objective-list">
|
||||||
<li class="objective-group__objective" v-for="objective in group.objectives" :key="objective.id">
|
<li class="objective-group__objective" v-for="objective in group.objectives" :key="objective.id">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="objective-group objective-group-control">
|
<div class="objective-group objective-group-control">
|
||||||
<h4>{{group.title}}</h4>
|
<h4>{{group.displayTitle}}</h4>
|
||||||
|
|
||||||
<ul class="objective-group__objective-list objective-group__objective-list--no-list">
|
<ul class="objective-group__objective-list objective-group__objective-list--no-list">
|
||||||
<li v-if="objectives" class="objective-group__objective" v-for="objective in objectives" :key="objective.id">
|
<li v-if="objectives" class="objective-group__objective" v-for="objective in objectives" :key="objective.id">
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,6 @@
|
||||||
import UPDATE_OBJECTIVE_GROUP_VISIBILITY_MUTATION from '@/graphql/gql/mutations/updateObjectiveGroupVisibility.gql';
|
import UPDATE_OBJECTIVE_GROUP_VISIBILITY_MUTATION from '@/graphql/gql/mutations/updateObjectiveGroupVisibility.gql';
|
||||||
import Checkbox from '@/components/Checkbox';
|
import Checkbox from '@/components/Checkbox';
|
||||||
import ME_QUERY from '@/graphql/gql/meQuery.gql'
|
import ME_QUERY from '@/graphql/gql/meQuery.gql'
|
||||||
// import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
|
||||||
|
|
||||||
// import store from '@/store/index';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['show', 'block'],
|
props: ['show', 'block'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue