Permalink
Browse files

hide sections if there's no tasks

  • Loading branch information...
amejiarosario committed Aug 13, 2018
1 parent dd7dd90 commit 790b2415c31aa6da9829565df436a067d6ca296c
Showing with 2 additions and 4 deletions.
  1. +2 −4 index.html
@@ -19,8 +19,7 @@ <h1 v-text="title"></h1>
autofocus>
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section class="main">
<section class="main" v-if="todos.length">
<ul class="todo-list">
<li v-for="todo in todos" :class="{ completed: todo.isDone, editing: todo === editing }">
@@ -39,8 +38,7 @@ <h1 v-text="title"></h1>
</ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer class="footer">
<footer class="footer" v-if="todos.length">
<span class="todo-count">
<strong>{{ activeTodos.length }}</strong> item(s) left</span>

0 comments on commit 790b241

Please sign in to comment.