feat: update button copy
This commit is contained in:
+12
-6
@@ -35,12 +35,7 @@
|
||||
size="tiny"
|
||||
@click="addAllLabels"
|
||||
>
|
||||
<template v-if="selectedLabels.length === 0">
|
||||
Add all labels
|
||||
</template>
|
||||
<template v-else>
|
||||
Add selected labels
|
||||
</template>
|
||||
{{ addButtonText }}
|
||||
</woot-button>
|
||||
</div>
|
||||
<div class="sender--info has-tooltip" data-original-title="null">
|
||||
@@ -125,6 +120,17 @@ export default {
|
||||
|
||||
return this.$t('LABEL_MGMT.SUGGESTIONS.TOOLTIP.SINGLE_SUGGESTION');
|
||||
},
|
||||
addButtonText() {
|
||||
if (this.selectedLabels.length === 1) {
|
||||
return this.$t('LABEL_MGMT.SUGGESTIONS.ADD_SELECTED_LABEL');
|
||||
}
|
||||
|
||||
if (this.selectedLabels.length > 1) {
|
||||
return this.$t('LABEL_MGMT.SUGGESTIONS.ADD_SELECTED_LABELS');
|
||||
}
|
||||
|
||||
return this.$t('LABEL_MGMT.SUGGESTIONS.ADD_ALL_LABELS');
|
||||
},
|
||||
preparedLabels() {
|
||||
return this.allLabels.filter(label =>
|
||||
this.suggestedLabels.includes(label.title)
|
||||
|
||||
@@ -40,7 +40,10 @@
|
||||
"MULTIPLE_SUGGESTION": "Select this label",
|
||||
"DESELECT": "Deselect label"
|
||||
},
|
||||
"POWERED_BY": "Chatwoot AI"
|
||||
"POWERED_BY": "Chatwoot AI",
|
||||
"ADD_SELECTED_LABELS": "Add selected labels",
|
||||
"ADD_SELECTED_LABEL": "Add selected label",
|
||||
"ADD_ALL_LABELS": "Add all labels"
|
||||
},
|
||||
"ADD": {
|
||||
"TITLE": "Add label",
|
||||
|
||||
Reference in New Issue
Block a user