Skip to content
Snippets Groups Projects

Resolve "Frontend for Models"

Merged Julian requested to merge 1-frontend-for-models into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -264,7 +264,8 @@ export default {
@@ -264,7 +264,8 @@ export default {
await this.$apollo.queries.items.refetch();
await this.$apollo.queries.items.refetch();
this.loading[dest] = false;
this.loading[dest] = false;
},
},
copySingularSlotTodDay(slot, day) {
async copySingularSlotTodDay(slot, day) {
 
this.loading[day] = true;
this.$apollo.mutate({
this.$apollo.mutate({
mutation: carryOverSlots,
mutation: carryOverSlots,
variables: {
variables: {
@@ -274,6 +275,9 @@ export default {
@@ -274,6 +275,9 @@ export default {
only: [slot.id],
only: [slot.id],
},
},
})
})
 
// FIXME: Optimistic response; add to store?
 
await this.$apollo.queries.items.refetch();
 
this.loading[day] = false;
},
},
deleteSingularSlot(slot) {
deleteSingularSlot(slot) {
this.itemToDelete = slot;
this.itemToDelete = slot;
Loading