Do not show no-problems variants in problems select box
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 27 Mar 2020 19:00:38 +0000 (20:00 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 27 Mar 2020 19:00:38 +0000 (20:00 +0100)
client/src/views/Problems.vue

index 270707d..b1a02b1 100644 (file)
@@ -18,6 +18,7 @@ main
         )
           option(
             v-for="v in [emptyVar].concat(st.variants)"
+            v-if="!v.noProblems"
             :value="v.id"
             :selected="curproblem.vid==v.id"
           )