Allow the user to assign cards of additional columns

This commit is contained in:
2020-08-26 10:04:42 +02:00
parent 89ed7a327b
commit b2d0deb3a5
3 changed files with 63 additions and 4 deletions

@ -22,7 +22,7 @@
<template v-for="(elem, row) in solution">
<div class="row">
<div v-for="(idx, column) in elem.idx" class="card" v-bind:class="{incorrect: column == store.section && incorrects[row]}">
{{ solution_text(elem, column) }}
<span>{{ solution_text(elem, column) }}</span>
<svg width=20 height=20 v-if="column == store.section && !solution_correct" v-on:click="remove_solution(row)">
<path d="M2 2L18 18M18 2L2 18" stroke="#f00" stroke-width="2px" />
</svg>
@ -56,7 +56,7 @@
v-bind:style="{visibility: store_card_visible(item_idx) ? 'visible' : 'hidden'}"
v-on:click="store_select(item_idx)"
>
{{ store_text(item_idx) }}
<span>{{ store_text(item_idx) }}</span>
</div>
</div>
</div>