add missing variables to update, remove confusing class name 🤯

This commit is contained in:
Christian Cueni 2018-10-11 15:08:35 +02:00
parent 5dd77eab5d
commit cf01aa2bf9
3 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@
if (data.objective.objectiveProgress.edges.length > 0) { if (data.objective.objectiveProgress.edges.length > 0) {
data.objective.objectiveProgress.edges[0].node.done = done; data.objective.objectiveProgress.edges[0].node.done = done;
} }
store.writeQuery({query: OBJECTIVE_QUERY, data}); store.writeQuery({query: OBJECTIVE_QUERY, data, variables});
} }
} catch (e) { } catch (e) {
// Query did not exist in the cache, and apollo throws a generic Error. Do nothing // Query did not exist in the cache, and apollo throws a generic Error. Do nothing

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="objective-group objective-group--control objective-group-control"> <div class="objective-group objective-group-control">
<h4>{{group.title}}</h4> <h4>{{group.title}}</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">
@ -52,6 +52,10 @@
@import "@/styles/_variables.scss"; @import "@/styles/_variables.scss";
@import "@/styles/_functions.scss"; @import "@/styles/_functions.scss";
.objective-group-control {
background-color: $color-brand-light;
}
.objective-group__objective-list /deep/ { .objective-group__objective-list /deep/ {
.base-input-container { .base-input-container {

View File

@ -5,10 +5,6 @@
padding: 17px; padding: 17px;
margin-bottom: 35px; margin-bottom: 35px;
&--control {
background-color: $color-brand-light;
}
&__objective-list { &__objective-list {
padding-left: 20px; padding-left: 20px;
list-style: disc; list-style: disc;