Skip to content
Snippets Groups Projects
Verified Commit a3465729 authored by permcu's avatar permcu Committed by Jonathan Weth
Browse files

Use counter-chip for absence-reason-chip

parent 6776cc03
No related branches found
No related tags found
1 merge request!20Resolve "Create AbsenceReason Select field"
<script> <script>
import CounterChip from "aleksis.core/components/generic/chips/CounterChip.vue";
export default { export default {
name: "AbsenceReasonChip", name: "AbsenceReasonChip",
props: { props: {
...@@ -17,7 +19,7 @@ export default { ...@@ -17,7 +19,7 @@ export default {
default: false, default: false,
}, },
}, },
extends: "v-chip", extends: "CounterChip",
computed: { computed: {
text() { text() {
return this.short return this.short
...@@ -29,7 +31,7 @@ export default { ...@@ -29,7 +31,7 @@ export default {
</script> </script>
<template> <template>
<v-chip <counter-chip
:color="absenceReason.colour" :color="absenceReason.colour"
:value="absenceReason.id" :value="absenceReason.id"
v-bind="$attrs" v-bind="$attrs"
...@@ -51,5 +53,5 @@ export default { ...@@ -51,5 +53,5 @@ export default {
:width="2" :width="2"
/> />
</v-avatar> </v-avatar>
</v-chip> </counter-chip>
</template> </template>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment