Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/composables/useEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { t } from '@nextcloud/l10n'
import debounce from 'debounce'
import { computed, defineCustomElement, markRaw, nextTick, onBeforeUnmount, ref, watch } from 'vue'
import { getLinkWithPicker } from '@nextcloud/vue/components/NcRichText'
import { getReferenceWithPicker } from '@nextcloud/vue/components/NcRichText'

Check failure on line 12 in src/composables/useEditor.ts

View workflow job for this annotation

GitHub Actions / NPM lint

Module '"@nextcloud/vue/components/NcRichText"' has no exported member 'getReferenceWithPicker'. Did you mean to use 'import getReferenceWithPicker from "@nextcloud/vue/components/NcRichText"' instead?
import PageIcon from '../components/Icon/PageIcon.vue'
import { useCirclesStore } from '../stores/circles.js'
import { useCollectivesStore } from '../stores/collectives.js'
Expand Down Expand Up @@ -107,7 +107,7 @@
label: t('collectives', 'Link to page'),
icon: 'page-icon',
action: () => {
return getLinkWithPicker('collectives-ref-pages', false)
return getReferenceWithPicker('collectives-ref-pages', false)
},
},
openLinkHandler: window.OCA.Collectives.openLink,
Expand Down
6 changes: 5 additions & 1 deletion src/views/PagePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,13 @@ export default defineComponent({
+ generateUrl('/apps/collectives')
+ collectivePath
+ '/' + pagePath
const detail = {
link: pageLink,
title: page.title,
}
this.$el.dispatchEvent(new CustomEvent('submit', {
bubbles: true,
detail: pageLink,
detail,
}))
} else {
console.error('Cannot generate page link')
Expand Down
Loading