Skip to content

Commit

Permalink
Merge pull request #3855 from nextcloud/fix/noid/richtext-emits
Browse files Browse the repository at this point in the history
Add emits event sections for `NcRichText*` components
  • Loading branch information
mejo- authored Mar 4, 2023
2 parents 233dfd7 + c8c5de2 commit 6413411
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default {
required: true,
},
},
emits: [
'cancel',
'submit',
],
data() {
return {
isRegistered: isCustomPickerElementRegistered(this.provider.id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default {
NcEmptyContent,
LinkVariantIcon,
},
emits: [
'select-provider',
'submit',
],
data() {
return {
selectedProvider: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export default {
required: true,
},
},
emits: [
'submit',
],
data() {
return {
inputValue: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export default {
default: true,
},
},
emits: [
'cancel',
'cancel-raw-link',
'cancel-search',
'provider-selected',
'submit',
],
data() {
return {
MODES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export default {
default: false,
},
},
emits: [
'cancel',
'submit',
],
data() {
return {
show: true,
Expand Down
3 changes: 3 additions & 0 deletions src/components/NcRichText/NcReferencePicker/NcSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export default {
default: null,
},
},
emits: [
'submit',
],
data() {
return {
searchQuery: '',
Expand Down

0 comments on commit 6413411

Please sign in to comment.