Skip to content

Commit

Permalink
#4552 - No details shown when hovering over annotations in lower part…
Browse files Browse the repository at this point in the history
… of the curation page

- Add the new annotation detail popover to the lower curation panels
  • Loading branch information
reckart committed Feb 24, 2024
1 parent d17ca42 commit 0ffc8b8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions inception/inception-brat-editor/src/main/ts/src/brat_curation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Ajax } from './ajax/Ajax'
import { INSTANCE as Util } from './util/Util'
import { CurationMod } from './curation/CurationMod'
import { factory as diamAjaxFactory } from '@inception-project/inception-diam'
import AnnotationDetailPopOver from '@inception-project/inception-js-api/src/widget/AnnotationDetailPopOver.svelte'
import './style-vis.scss'

declare let Wicket
Expand All @@ -27,8 +28,22 @@ function brat (markupId: string, controllerCallbackUrl: string, collCallbackUrl:
const diamAjax = diamAjaxFactory().createAjaxClient(controllerCallbackUrl)
Util.embedByURL(markupId, diamAjax, collCallbackUrl, docCallbackUrl,
function (dispatcher) {
// eslint-disable-next-line no-new
new Ajax(dispatcher, markupId, controllerCallbackUrl)
// eslint-disable-next-line no-new
new CurationMod(dispatcher, diamAjax)

const element = Wicket.$(markupId)

// eslint-disable-next-line no-new
new AnnotationDetailPopOver({
target: document.body,
props: {
root: element,
ajax: diamAjax
}
})

Wicket.$(markupId).dispatcher = dispatcher
})
}
Expand Down

0 comments on commit 0ffc8b8

Please sign in to comment.