Skip to content
Snippets Groups Projects
Commit 002ddf80 authored by Julian's avatar Julian
Browse files

Fix loading animations in LessonRaster

parent 2d2bf75a
No related branches found
No related tags found
1 merge request!2Resolve "Frontend for Models"
......@@ -79,7 +79,7 @@
}"
v-slot="{ hover }"
>
<v-card :loading="$apollo.queries.items.loading">
<v-card :loading="$apollo.queries.items.loading || loading.main">
<v-card-title
class="d-flex flex-wrap justify-space-between align-center fill-height"
>
......@@ -108,7 +108,7 @@
icon
v-bind="attrs"
v-on="{ ...tooltip, ...menu }"
:loading="loading[weekday]"
:loading="loading[weekday] || loading.main"
v-show="hover"
>
<v-icon>mdi-application-export</v-icon>
......@@ -168,7 +168,7 @@
v-for="slot in slots"
:key="'slot-' + slot.id"
:item="slot"
:disabled="$apollo.queries.items.loading"
:disabled="$apollo.queries.items.loading || loading.main || loading[slot.weekday]"
@click:delete="deleteSingularSlot"
@click:copy="copySingularSlotTodDay($event.item, $event.weekday)"
:weekdays="weekdays"
......@@ -265,7 +265,9 @@ export default {
return {
weekdays: [],
internalTimeGrid: null,
loading: {},
loading: {
main: false,
},
gqlQuery: slots,
deleteMutation: deleteSlot,
deleteMultipleMutation: deleteSlots,
......
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