|
|
|
@ -12,6 +12,9 @@
|
|
|
|
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'show-category/'+event.target.value).then((response)=>{
|
|
|
|
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'show-category/'+event.target.value).then((response)=>{
|
|
|
|
this.categorySessions = response.data;
|
|
|
|
this.categorySessions = response.data;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
copy(event){
|
|
|
|
|
|
|
|
navigator.clipboard.writeText(event.target.innerHTML);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
@ -36,21 +39,21 @@
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>id</th>
|
|
|
|
<th>id</th>
|
|
|
|
<th>description</th>
|
|
|
|
<th>description</th>
|
|
|
|
<th>seconds</th>
|
|
|
|
<th>seconds</th>
|
|
|
|
<th>comments</th>
|
|
|
|
<th>comments</th>
|
|
|
|
<th>created at</th>
|
|
|
|
<th>created at</th>
|
|
|
|
<th>category id</th>
|
|
|
|
<th>category id</th>
|
|
|
|
<th>category</th>
|
|
|
|
<th>category</th>
|
|
|
|
<th>instrument</th>
|
|
|
|
<th>instrument</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="session in categorySessions">
|
|
|
|
<tr v-for="session in categorySessions">
|
|
|
|
<td>{{session.id}}</td>
|
|
|
|
<td>{{session.id}}</td>
|
|
|
|
<td>{{session.description}}</td>
|
|
|
|
<td @click="copy">{{session.description}}</td>
|
|
|
|
<td>{{session.seconds}}</td>
|
|
|
|
<td @click="copy">{{session.seconds}}</td>
|
|
|
|
<td>{{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>
|
|
|
|
<td>{{session.category}}</td>
|
|
|
|
<td>{{session.category}}</td>
|
|
|
|
|