diff --git a/packages/presentation/src/components/NavLink.svelte b/packages/presentation/src/components/NavLink.svelte index cf486d84ef..597592bfab 100644 --- a/packages/presentation/src/components/NavLink.svelte +++ b/packages/presentation/src/components/NavLink.svelte @@ -33,7 +33,10 @@ e.stopPropagation() onClick(e) } else if (href !== undefined) { - if (e.metaKey || e.ctrlKey) return + if (e.metaKey || e.ctrlKey) { + e.stopPropagation() + return + } // we need to close popups and tooltips closePopup() @@ -60,7 +63,7 @@ class:colorInherit class:fs-bold={accent} style:flex-shrink={shrink} - on:click|stopPropagation={clickHandler} + on:click={clickHandler} > @@ -73,7 +76,7 @@ class:colorInherit class:fs-bold={accent} style:flex-shrink={shrink} - on:click|stopPropagation={clickHandler} + on:click={clickHandler} > diff --git a/plugins/chunter-resources/src/components/CommentsPresenter.svelte b/plugins/chunter-resources/src/components/CommentsPresenter.svelte index 076080293c..4f32fca082 100644 --- a/plugins/chunter-resources/src/components/CommentsPresenter.svelte +++ b/plugins/chunter-resources/src/components/CommentsPresenter.svelte @@ -15,8 +15,7 @@ --> {#if value && value > 0} - - - {#if kind === 'list'} - - {:else} -
- - {#if showCounter && value && value !== 0} - {value} - {/if} -
- {/if} -
+ {/if} diff --git a/plugins/contact-resources/src/components/EmployeeFilter.svelte b/plugins/contact-resources/src/components/EmployeeFilter.svelte index 98e15266f9..3a5205d7e3 100644 --- a/plugins/contact-resources/src/components/EmployeeFilter.svelte +++ b/plugins/contact-resources/src/components/EmployeeFilter.svelte @@ -157,7 +157,13 @@ }} >
- +
{#if isSelected(value, filter.value)} diff --git a/plugins/contact-resources/src/components/EmployeePresenter.svelte b/plugins/contact-resources/src/components/EmployeePresenter.svelte index 0bc4e0e163..1d6a2d5556 100644 --- a/plugins/contact-resources/src/components/EmployeePresenter.svelte +++ b/plugins/contact-resources/src/components/EmployeePresenter.svelte @@ -20,6 +20,7 @@ export let accent: boolean = false export let defaultName: IntlString | undefined = ui.string.NotSelected export let element: HTMLElement | undefined = undefined + export let noUnderline: boolean = false $: employeeValue = typeof value === 'string' ? $personByIdStore.get(value) : value @@ -41,6 +42,7 @@ {colorInherit} {accent} {defaultName} + {noUnderline} statusLabel={active === false && shouldShowName ? contact.string.Inactive : undefined} on:accent-color /> diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index 5b01cfda53..8369969e7c 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -17,15 +17,15 @@ import { CommentsPresenter } from '@hcengineering/chunter-resources' import contact, { getName } from '@hcengineering/contact' import { Avatar } from '@hcengineering/contact-resources' - import { Hierarchy, WithLookup } from '@hcengineering/core' + import { WithLookup } from '@hcengineering/core' import notification from '@hcengineering/notification' import { getClient } from '@hcengineering/presentation' import recruit, { Applicant, Candidate } from '@hcengineering/recruit' import { AssigneePresenter, StateRefPresenter } from '@hcengineering/task-resources' import tracker from '@hcengineering/tracker' - import { Component, DueDatePresenter, showPanel } from '@hcengineering/ui' - import view, { BuildModelKey } from '@hcengineering/view' - import { ObjectPresenter, enabledConfig } from '@hcengineering/view-resources' + import { Component, DueDatePresenter } from '@hcengineering/ui' + import { BuildModelKey } from '@hcengineering/view' + import { DocNavLink, ObjectPresenter, enabledConfig } from '@hcengineering/view-resources' import ApplicationPresenter from './ApplicationPresenter.svelte' export let object: WithLookup @@ -38,117 +38,121 @@ const assigneeAttribute = hierarchy.getAttribute(recruit.class.Applicant, 'assignee') const isTitleHidden = client.getHierarchy().getAttribute(recruit.mixin.Candidate, 'title').hidden - function showCandidate () { - showPanel(view.component.EditDoc, object._id, Hierarchy.mixinOrClass(object), 'content') - } - $: channels = (object.$lookup?.attachedTo as WithLookup)?.$lookup?.channels $: company = object?.$lookup?.space?.company -
- {#if enabledConfig(config, 'space') || enabledConfig(config, 'company')} -
- {#if enabledConfig(config, 'space')} - - {/if} - {#if company && enabledConfig(config, 'company')} - - {/if} -
- {/if} -
-
- -
-
- {object.$lookup?.attachedTo ? getName(client.getHierarchy(), object.$lookup.attachedTo) : ''} +
+ + {#if enabledConfig(config, 'space') || enabledConfig(config, 'company')} +
+ {#if enabledConfig(config, 'space')} + + {/if} + {#if company && enabledConfig(config, 'company')} + + {/if} +
+ {/if} +
+
+ +
+
+ {object.$lookup?.attachedTo ? getName(client.getHierarchy(), object.$lookup.attachedTo) : ''} +
+ {#if !isTitleHidden && enabledConfig(config, 'title')} +
{object.$lookup?.attachedTo?.title ?? ''}
+ {/if}
- {#if !isTitleHidden && enabledConfig(config, 'title')} -
{object.$lookup?.attachedTo?.title ?? ''}
+
+
+ {#if !dragged} +
+ +
{/if}
-
- {#if !dragged} -
- -
+ {#if channels && channels.length > 0 && enabledConfig(config, 'channels')} +
+ +
+ {/if} +
+ {#if groupByKey !== 'status' && enabledConfig(config, 'status')} + { + client.update(object, { status }) + }} + /> + {/if} + + {#if enabledConfig(config, 'dueDate')} + { + await client.update(object, { dueDate: e }) + }} + /> {/if}
-
- {#if channels && channels.length > 0 && enabledConfig(config, 'channels')} -
- -
- {/if} -
- {#if groupByKey !== 'status' && enabledConfig(config, 'status')} - { - client.update(object, { status }) - }} - /> - {/if} - - {#if enabledConfig(config, 'dueDate')} - { - await client.update(object, { dueDate: e }) - }} - /> - {/if} -
-
-
- {#if enabledConfig(config, '')} - - {/if} - {#if (object.attachments ?? 0) > 0 && enabledConfig(config, 'attachments')} - - {/if} - {#if enabledConfig(config, 'comments')} - {#if (object.comments ?? 0) > 0} - +
+
+ {#if enabledConfig(config, '')} + {/if} - {#if object.$lookup?.attachedTo !== undefined && (object.$lookup.attachedTo.comments ?? 0) > 0} - + {#if (object.attachments ?? 0) > 0 && enabledConfig(config, 'attachments')} + {/if} + {#if enabledConfig(config, 'comments')} + {#if (object.comments ?? 0) > 0} + + {/if} + {#if object.$lookup?.attachedTo !== undefined && (object.$lookup.attachedTo.comments ?? 0) > 0} + + {/if} + {/if} +
+ {#if enabledConfig(config, 'assignee')} + {/if}
- {#if enabledConfig(config, 'assignee')} - - {/if} -
+