format seconds for show category

practiced-songs
Matthew Huntington 1 year ago
parent aa21ecb6f5
commit c0b0ee390f

@ -1,4 +1,5 @@
<script setup> <script setup>
import { formatSeconds } from '../libs/time.js'
import CategoryChooser from './category_chooser.vue' import CategoryChooser from './category_chooser.vue'
import { onMounted, ref, watch, defineProps, toRefs} from 'vue' import { onMounted, ref, watch, defineProps, toRefs} from 'vue'
@ -54,7 +55,7 @@
<tr v-for="session in categorySessions"> <tr v-for="session in categorySessions">
<td>{{session.id}}</td> <td>{{session.id}}</td>
<td @click="copy">{{session.description}}</td> <td @click="copy">{{session.description}}</td>
<td @click="copy">{{session.seconds}}</td> <td @click="copy">{{formatSeconds(session.seconds)}}</td>
<td @click="copy">{{session.comments}}</td> <td @click="copy">{{session.comments}}</td>
<td>{{session.created_at}}</td> <td>{{session.created_at}}</td>
<td>{{session.category_id}}</td> <td>{{session.category_id}}</td>

Loading…
Cancel
Save