diff --git a/packages/ui/src/panelup.ts b/packages/ui/src/panelup.ts index 7cb9db0fb6..4748243821 100644 --- a/packages/ui/src/panelup.ts +++ b/packages/ui/src/panelup.ts @@ -34,13 +34,7 @@ location.subscribe((loc) => { } }) -export function getPanelURI ( - component: AnyComponent, - _id: string, - _class: string, - element?: PopupAlignment, - rightSection?: AnyComponent -): string { +export function getPanelURI (component: AnyComponent, _id: string, _class: string, element?: PopupAlignment): string { const panelProps = [component, _id, _class] if (typeof element === 'string') { panelProps.push(element) @@ -55,7 +49,7 @@ export function showPanel ( element?: PopupAlignment, rightSection?: AnyComponent ): void { - const newLoc = getPanelURI(component, _id, _class, element, rightSection) + const newLoc = getPanelURI(component, _id, _class, element) if (currentLocation === newLoc) { return } diff --git a/server-plugins/contact-resources/src/index.ts b/server-plugins/contact-resources/src/index.ts index dff3b7f524..bcc9a456aa 100644 --- a/server-plugins/contact-resources/src/index.ts +++ b/server-plugins/contact-resources/src/index.ts @@ -77,7 +77,7 @@ export function personHTMLPresenter (doc: Doc, control: TriggerControl): string const front = getMetadata(login.metadata.FrontUrl) ?? '' return `${formatName(person.name)}` + }|${person._class}|content">${formatName(person.name)}` } /** @@ -94,7 +94,7 @@ export function personTextPresenter (doc: Doc): string { export function organizationHTMLPresenter (doc: Doc, control: TriggerControl): string { const organization = doc as Organization const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `${organization.name}` + return `${organization.name}` } /** diff --git a/server-plugins/inventory-resources/src/index.ts b/server-plugins/inventory-resources/src/index.ts index db0b7d26c7..fe9c2a20f1 100644 --- a/server-plugins/inventory-resources/src/index.ts +++ b/server-plugins/inventory-resources/src/index.ts @@ -27,7 +27,7 @@ import { workbenchId } from '@hcengineering/workbench' export async function productHTMLPresenter (doc: Doc, control: TriggerControl): Promise { const product = doc as Product const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `${product.name}` + return `${product.name}` } /** diff --git a/server-plugins/lead-resources/src/index.ts b/server-plugins/lead-resources/src/index.ts index 8f6a0189cc..04683d16d9 100644 --- a/server-plugins/lead-resources/src/index.ts +++ b/server-plugins/lead-resources/src/index.ts @@ -37,7 +37,7 @@ import { addAssigneeNotification } from '@hcengineering/server-task-resources' export async function leadHTMLPresenter (doc: Doc, control: TriggerControl): Promise { const lead = doc as Lead const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `${lead.title}` + return `${lead.title}` } /** diff --git a/server-plugins/recruit-resources/src/index.ts b/server-plugins/recruit-resources/src/index.ts index 5ee9932092..7b81aa31c2 100644 --- a/server-plugins/recruit-resources/src/index.ts +++ b/server-plugins/recruit-resources/src/index.ts @@ -39,7 +39,7 @@ import { workbenchId } from '@hcengineering/workbench' export async function vacancyHTMLPresenter (doc: Doc, control: TriggerControl): Promise { const vacancy = doc as Vacancy const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `${vacancy.name}` + return `${vacancy.name}` } /** @@ -56,7 +56,7 @@ export async function vacancyTextPresenter (doc: Doc): Promise { export async function applicationHTMLPresenter (doc: Doc, control: TriggerControl): Promise { const applicant = doc as Applicant const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `APP-${applicant.number}` + return `APP-${applicant.number}` } /** diff --git a/server-plugins/task-resources/src/index.ts b/server-plugins/task-resources/src/index.ts index 8217274b4d..db50381f0a 100644 --- a/server-plugins/task-resources/src/index.ts +++ b/server-plugins/task-resources/src/index.ts @@ -31,7 +31,7 @@ import { workbenchId } from '@hcengineering/workbench' export async function issueHTMLPresenter (doc: Doc, control: TriggerControl): Promise { const issue = doc as Issue const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `Task-${issue.number}` + return `Task-${issue.number}` } /** diff --git a/server-plugins/tracker-resources/src/index.ts b/server-plugins/tracker-resources/src/index.ts index b3e76bc7c4..48ded257fc 100644 --- a/server-plugins/tracker-resources/src/index.ts +++ b/server-plugins/tracker-resources/src/index.ts @@ -59,7 +59,7 @@ export async function issueHTMLPresenter (doc: Doc, control: TriggerControl): Pr const issueName = `${team?.identifier ?? '?'}-${issue.number}` const front = getMetadata(login.metadata.FrontUrl) ?? '' - return `${issueName}` + return `${issueName}` } /**