fixed back button visibility

This commit is contained in:
thilo 2020-03-22 15:22:35 +01:00
parent dfa91d44b1
commit 2d77da14a2

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="questionmaire"> <div class="questionmaire">
<img id="back-button" v-if="$store.state.currentQuestion != 0" v-on:click="goBack()" src="../assets/arrow-circle-left-outline.svg"> <img id="back-button" v-if="$route.params.id != 0" v-on:click="goBack()" src="../assets/arrow-circle-left-outline.svg">
<div id="status-bar-wrapper"> <div id="status-bar-wrapper">
<div class="progress"> <div class="progress">
<div v-bind:key="n" v-for="n in $store.state.questions.length" v-bind:class="getDotClass(n)"></div> <div v-bind:key="n" v-for="n in $store.state.questions.length" v-bind:class="getDotClass(n)"></div>