edit-tags: translate tag names
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/672/head
parent
3008647ee5
commit
44a55e1e4a
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue