Skip to content

Commit

Permalink
UBERF-5594: render mentions before object is loaded (hcengineering#4738)
Browse files Browse the repository at this point in the history
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
  • Loading branch information
kristina-fefelova authored and tjaoc committed Mar 7, 2024
1 parent 5bcacd7 commit 0540112
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,7 @@
{/if}
{:else if value}
<div class="flex-row-center">
<DocNavLink
object={value}
{onClick}
{disabled}
{noUnderline}
{inline}
component={tracker.component.EditIssue}
shrink={0}
>
<DocNavLink object={value} {onClick} {disabled} {noUnderline} component={tracker.component.EditIssue} shrink={0}>
<span class="issuePresenterRoot" class:list={kind === 'list'} class:cursor-pointer={!disabled}>
{#if shouldShowAvatar}
<div class="icon" use:tooltip={{ label: tracker.string.Issue }}>
Expand Down
17 changes: 10 additions & 7 deletions plugins/view/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Account,
AggregateValue,
AnyAttribute,
Attribute,
CategoryType,
Class,
Client,
Expand All @@ -36,17 +37,18 @@ import {
Tx,
TxOperations,
Type,
UXObject
UXObject,
WithLookup
} from '@hcengineering/core'
import { Asset, IntlString, Resource, Status } from '@hcengineering/platform'
import { Preference } from '@hcengineering/preference'
import {
AnyComponent,
AnySvelteComponent,
type LabelAndProps,
Location,
Location as PlatformLocation,
type LabelAndProps
Location as PlatformLocation
} from '@hcengineering/ui'
import { Asset, IntlString, Resource, Status } from '@hcengineering/platform'
import { Preference } from '@hcengineering/preference'

/**
* @public
Expand Down Expand Up @@ -374,7 +376,8 @@ export interface Groupping extends Class<Doc> {
*/
export interface AggregationManager {
close: () => void
notifyTx: (...tx: Tx[]) => Promise<void>
notifyTx: (tx: Tx) => Promise<void>
updateLookup: (resultDoc: WithLookup<Doc>, attr: Attribute<Doc>) => Promise<void>
categorize: (target: Array<Ref<Doc>>, attr: AnyAttribute) => Promise<Array<Ref<Doc>>>
getAttrClass: () => Ref<Class<Doc>>
updateSorting?: (finalOptions: FindOptions<Doc>, attr: AnyAttribute) => Promise<void>
Expand Down Expand Up @@ -521,7 +524,7 @@ export interface Action<T extends Doc = Doc, P = Record<string, any>> extends Do
// For example, it could be global action and action for focus class, second one fill override first one.
override?: Ref<Action>[]

// Available only for workspace owners
// Avaible only for workspace owners
secured?: boolean
allowedForEditableContent?: boolean
}
Expand Down

0 comments on commit 0540112

Please sign in to comment.