feat: Creates add button component for label (#2223)
This commit is contained in:
parent
6245a10a70
commit
5c80d0ac42
2 changed files with 44 additions and 0 deletions
25
app/javascript/shared/components/ui/dropdown/AddLabel.vue
Normal file
25
app/javascript/shared/components/ui/dropdown/AddLabel.vue
Normal file
|
@ -0,0 +1,25 @@
|
|||
<template>
|
||||
<div>
|
||||
<woot-button
|
||||
variant="hollow"
|
||||
size="tiny"
|
||||
icon="ion-plus-round"
|
||||
color-scheme="secondary"
|
||||
@click="toggleLabels"
|
||||
>
|
||||
{{ $t('CONTACT_PANEL.LABELS.MODAL.ADD_BUTTON') }}
|
||||
</woot-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
toggleLabels() {
|
||||
this.$emit('add');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
Loading…
Add table
Add a link
Reference in a new issue