Fixes to terms list parent-child component comunication.

This commit is contained in:
mateuswetah 2024-03-27 09:56:02 -03:00
parent af44d2e3d8
commit 153117ac5e
4 changed files with 11 additions and 7 deletions

View File

@ -92,14 +92,14 @@
<b-dropdown-item
id="item-delete-selected-terms"
aria-role="listitem"
@click="$emit('deleteSelectedTerms')">
@click="$emitter.emit('deleteSelectedTerms')">
{{ $i18n.get('label_delete_permanently') }}
</b-dropdown-item>
<b-dropdown-item
v-if="isHierarchical"
id="item-update-selected-terms"
aria-role="listitem"
@click="$emit('updateSelectedTermsParent')">
@click="$emitter.emit('updateSelectedTermsParent')">
{{ $i18n.get('label_update_parent') }}
</b-dropdown-item>
</b-dropdown>
@ -133,10 +133,6 @@ export default {
currentUserCanEditTaxonomy: Boolean,
isHierarchical: Boolean
},
emits: [
'deleteSelectedTerms',
'updateSelectedTermsParent'
],
data() {
return {
searchString: '',

View File

@ -8,7 +8,7 @@
class="tainacan-form tainacan-dialog dialog">
<div
class="modal-card"
style="width: auto">
style="width: auto; max-width: 560px;">
<div class="modal-custom-icon">
<span class="icon is-large">
<i

View File

@ -139,6 +139,10 @@
type: Function,
default: () => {}
},
hideCancel: {
type: Boolean,
default: false,
},
taxonomyId: '',
excludeTree: '',
isHierarchical: Boolean,

View File

@ -106,6 +106,10 @@
type: Function,
default: () => {}
},
hideCancel: {
type: Boolean,
default: false,
},
amountOfTerms: {
type: Number,
default: 1