Table View for tasks #76

Merged
konrad merged 23 commits from feature/table-view into master 2020-04-01 20:13:57 +00:00
3 changed files with 33 additions and 11 deletions
Showing only changes of commit c98e2f899f - Show all commits

View File

@ -4,6 +4,7 @@
<thead>
<tr>
<th>#</th>
<th>Done</th>
<th>Name</th>
<th>Priority</th>
<th>Labels</th>
@ -20,6 +21,9 @@
<tbody>
<tr v-for="t in tasks" :key="t.id">
<td><router-link :to="{name: 'taskDetailView', params: { id: t.id }}">{{ t.id }}</router-link></td>
<td>
<div class="is-done" v-if="t.done">Done</div>
</td>
<td><router-link :to="{name: 'taskDetailView', params: { id: t.id }}">{{ t.text }}</router-link></td>
<td>
<priority-label :priority="t.priority" :show-all="true"/>
@ -88,7 +92,19 @@
data() {
return {
activeColumns: {
id: true,
done: true,
text: true,
priority: false,
labels: true,
assignees: true,
dueDate: true,
startDate: false,
endDate: false,
percentDone: false,
created: false,
updated: false,
createdBy: false,
}
}
},

View File

@ -5,5 +5,10 @@
.user {
margin: 0;
}
.is-done {
font-size: .9em;
margin: 0;
}
}
}

View File

@ -55,16 +55,6 @@
height: auto;
}
.is-done {
background: $green;
color: $white;
padding: .5em;
font-size: 1.5em;
margin-left: .5em;
font-weight: bold;
line-height: 1;
border-radius: 4px;
}
}
.date-input {
@ -181,3 +171,14 @@
}
}
}
.is-done {
background: $green;
color: $white;
padding: .5em;
font-size: 1.5em;
margin-left: .5em;
font-weight: bold;
line-height: 1;
border-radius: 4px;
}