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