Files
jandl-taskmanager-app/app/src/plugins/tm@overview/teams/_components/a-teams-table.vue
T
2023-02-22 16:44:20 +01:00

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>