Show current action

This commit is contained in:
Anton Vakhrushev 2020-04-19 21:50:45 +03:00
parent bfacfbf2fa
commit bcfb52cb98

View File

@ -1,8 +1,11 @@
<template>
<section class="task-list">
<p class="summary">
Task count: {{ shared.taskList.length }}
<template v-if="actionCount">, actions left {{ actionCount }}</template>
Task count: {{ shared.taskList.length
}}<!--
--><template v-if="actionCount">, actions left {{ actionCount }}</template
><!--
--><template v-if="currentAction">, {{ currentAction.name }}</template>
</p>
<div class="container">
<table class="task-table">
@ -34,6 +37,9 @@ export default {
actionCount() {
return this.shared.actionList.length;
},
currentAction() {
return this.shared.actionList.find(() => true);
},
},
methods: {
formatDate(ts) {