Chatwoot/app/javascript/shared/components/ui/dropdown/AddLabel.vue

39 lines
686 B
Vue
Raw Normal View History

<template>
<woot-button variant="link" class="label--add" @click="addLabel">
<woot-label
color-scheme="secondary"
:title="$t('CONTACT_PANEL.LABELS.CONVERSATION.ADD_BUTTON')"
icon="add-circle"
/>
</woot-button>
</template>
<script>
export default {
methods: {
addLabel() {
this.$emit('add');
},
},
};
</script>
<style lang="scss" scoped>
.label--add {
2022-01-03 11:51:04 +00:00
margin-bottom: var(--space-smaller);
margin-top: var(--space-smaller);
border: 0;
&::v-deep .label {
cursor: pointer;
2022-01-03 11:51:04 +00:00
margin-bottom: 0;
background: transparent;
2022-01-03 11:51:04 +00:00
border: 1px solid var(--s-600);
&:hover {
background: var(--s-50);
}
}
}
</style>