mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
51 lines
1.0 KiB
Vue
51 lines
1.0 KiB
Vue
<template>
|
|
<div>
|
|
<v-table>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left">Názov</th>
|
|
<th class="text-left">Akcia</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr v-for="team in teams" :key="team.id">
|
|
<td>{{ team.name }}</td>
|
|
<td class="task-action">
|
|
<div class="d-flex justify-start">
|
|
<img class="pencil-icon" :src="require('@/plugins/app/_img/icons/pencil.svg')" alt="pencil-icon" @click.stop="editTeam(team)" />
|
|
<img class="trash-icon" :src="require('@/plugins/app/_img/icons/bin.svg')" alt="trash-icon" @click.stop="deleteTeam(team)" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</v-table>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
teams: {
|
|
type: Array,
|
|
required: true
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
editTeam(team) {
|
|
this.$events.emit('show-team-modal', {team})
|
|
},
|
|
|
|
deleteTeam(team) {
|
|
this.$events.emit('show-delete-team-modal', {team})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="sass" scoped>
|
|
v-table, th, td
|
|
border: thin solid rgba(var(--v-border-color), var(--v-border-opacity))
|
|
</style>
|