edit-tags: translate tag names

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-28 01:22:13 -07:00
parent 3008647ee5
commit 44a55e1e4a
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,12 @@
<template>
<div class="outer">
<NcSelectTags class="nc-comp" v-model="tagSelection" :limit="null" :options-filter="tagFilter" />
<NcSelectTags
class="nc-comp"
v-model="tagSelection"
:limit="null"
:options-filter="tagFilter"
:get-option-label="tagLabel"
/>
</div>
</template>
@ -59,6 +65,10 @@ export default defineComponent({
);
},
tagLabel({ displayName }: { displayName: string }) {
return this.t('recognize', displayName);
},
result() {
const add = this.tagSelection.filter((x) => !this.origIds.has(x));
const remove = [...this.origIds].filter((x) => !this.tagSelection.includes(x));