♻️ (eta) using eta component
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import EstimationTimeArrival from '@/components/EstimationTimeArrival.vue'
|
||||
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||
import { formatLongDate } from '@/shared/format-date'
|
||||
import { useLoopyTitle } from '@/shared/useLoopyTitle'
|
||||
@@ -43,10 +44,7 @@ const isSuperiorToEstimation = computed(() => {
|
||||
</h1>
|
||||
<h2 class="subtitle" v-if="record">
|
||||
{{ formatLongDate(record.start) }}
|
||||
<div class="tags has-addons">
|
||||
<div class="tag">ETA</div>
|
||||
<div class="tag is-primary">{{ task.totalEstimation }} minutes</div>
|
||||
</div>
|
||||
<estimation-time-arrival :estimation="task.totalEstimation" />
|
||||
</h2>
|
||||
<record-controls :task-id="taskId" />
|
||||
<record-progress :task-id="taskId" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import EstimationTimeArrival from '@/components/EstimationTimeArrival.vue'
|
||||
import { createUuid } from '@/shared/create-uuid'
|
||||
import { computed, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
@@ -47,10 +48,7 @@ const saveTask = () => {
|
||||
<div class="column is-half">
|
||||
<h1 class="title">Create a task</h1>
|
||||
<h2 class="subtitle">
|
||||
<div class="tags has-addons">
|
||||
<div class="tag">ETA</div>
|
||||
<div class="tag is-primary">{{ totalEstimation }} minutes</div>
|
||||
</div>
|
||||
<estimation-time-arrival :estimation="totalEstimation" />
|
||||
</h2>
|
||||
<form @submit.prevent="saveTask">
|
||||
<div class="field">
|
||||
@@ -65,7 +63,7 @@ const saveTask = () => {
|
||||
<input class="input" type="text" id="link" v-model="link" />
|
||||
</div>
|
||||
</div>
|
||||
<StepInput v-model="steps" />
|
||||
<step-input v-model="steps" />
|
||||
<button class="button is-primary is-fullwidth" type="submit">
|
||||
save
|
||||
</button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import EstimationTimeArrival from '@/components/EstimationTimeArrival.vue'
|
||||
import TaskRecordPreview from '@/modules/record/components/TaskRecordPreview.vue'
|
||||
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||
import { computed } from 'vue'
|
||||
@@ -16,10 +17,7 @@ const task = computed(() => taskStore.getTask(props.id))
|
||||
<div class="task-view" v-if="task">
|
||||
<h1 class="title">{{ task.title }}</h1>
|
||||
<h2 class="subtitle">
|
||||
<div class="tags has-addons">
|
||||
<div class="tag">ETA</div>
|
||||
<div class="tag is-primary">{{ task.totalEstimation }} minutes</div>
|
||||
</div>
|
||||
<estimation-time-arrival :estimation="task.totalEstimation" />
|
||||
</h2>
|
||||
<a
|
||||
v-if="task.link"
|
||||
|
||||
Reference in New Issue
Block a user