Skip to content

Commit

Permalink
fix: incomplete adjustment of referencePickerModal.js
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
  • Loading branch information
raimund-schluessler committed Dec 20, 2023
1 parent fd871aa commit c248895
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/NcRichText/NcReferencePicker/referencePickerModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export async function getLinkWithPicker(providerId = null, isInsideViewer = unde
const view = createApp(NcReferencePickerModal, {

Check failure on line 24 in src/components/NcRichText/NcReferencePicker/referencePickerModal.js

View workflow job for this annotation

GitHub Actions / eslint

'view' is assigned a value but never used
initialProvider,
isInsideViewer,
onCancel() {
// Removed for vue 3 without replacement
//view.$destroy()

Check failure on line 29 in src/components/NcRichText/NcReferencePicker/referencePickerModal.js

View workflow job for this annotation

GitHub Actions / eslint

Expected space or tab after '//' in comment
reject(new Error('User cancellation'))
},
onSubmit(link) {
// Removed for vue 3 without replacement
//view.$destroy()

Check failure on line 34 in src/components/NcRichText/NcReferencePicker/referencePickerModal.js

View workflow job for this annotation

GitHub Actions / eslint

Expected space or tab after '//' in comment
resolve(link)
},
}).mount(modalElement)

// TODO adjust this for vue3
view.$on('cancel', () => {
view.$destroy()
reject(new Error('User cancellation'))
})
view.$on('submit', (link) => {
view.$destroy()
resolve(link)
})
})
}

0 comments on commit c248895

Please sign in to comment.