Skip to content

Commit

Permalink
added limit is not 0 check
Browse files Browse the repository at this point in the history
  • Loading branch information
snturk committed Apr 17, 2020
1 parent f72309d commit 85296a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Course.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<div id="infoContainer">
<div>course limit: <b>{{lim}}</b></div>
<div> current attd: <b>{{attd}}</b></div>
<div> percentage: <b>%{{percentage}}</b> </div>
<div> percentage: v-if="lim=! 0" <b>%{{percentage}}</b> </div>
</div>
<div id="attdContainer">
<div class="box" id="attdbox" v-for="(n, index) in attd"></div>
<div class="box" id="limitbox" v-for="(n, index) in currentLim"></div>
</div>
<div id="warning" v-if="currentLim == 0">you have no left limit to attd</div>
<div id="warning" v-if="currentLim == 0 && lim != 0">you have no left limit to attd</div>
<div id="opsContainer">
<div class="attdChange" id="attdPlus" v-on:click="changeAttd('+')">add</div>
<div class="attdChange" id="attdMinus" v-on:click="changeAttd('-')">remove</div>
Expand Down

0 comments on commit 85296a1

Please sign in to comment.