Fixes to terms list parent-child component comunication.
This commit is contained in:
parent
af44d2e3d8
commit
153117ac5e
|
@ -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: '',
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -139,6 +139,10 @@
|
|||
type: Function,
|
||||
default: () => {}
|
||||
},
|
||||
hideCancel: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
taxonomyId: '',
|
||||
excludeTree: '',
|
||||
isHierarchical: Boolean,
|
||||
|
|
|
@ -106,6 +106,10 @@
|
|||
type: Function,
|
||||
default: () => {}
|
||||
},
|
||||
hideCancel: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
amountOfTerms: {
|
||||
type: Number,
|
||||
default: 1
|
||||
|
|
Loading…
Reference in New Issue