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