TSK-1378: Qfix for exception ()

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-04-28 00:21:52 +07:00 committed by GitHub
parent 173d0fe625
commit 1c0d04132a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 9 deletions
plugins
devmodel-resources/src
notification-resources/src/components
tracker-resources/src/components

View File

@ -58,7 +58,7 @@ class ModelClient implements Client {
client.notify = (tx) => { client.notify = (tx) => {
this.notify?.(tx) this.notify?.(tx)
if (this.notifyEnabled) { if (this.notifyEnabled) {
console.info('devmodel# notify=>', tx, this.client.getModel(), getMetadata(devmodel.metadata.DevModel)) console.debug('devmodel# notify=>', tx, this.client.getModel(), getMetadata(devmodel.metadata.DevModel))
} }
} }
} }
@ -80,7 +80,7 @@ class ModelClient implements Client {
): Promise<WithLookup<T> | undefined> { ): Promise<WithLookup<T> | undefined> {
const result = await this.client.findOne(_class, query, options) const result = await this.client.findOne(_class, query, options)
if (this.notifyEnabled) { if (this.notifyEnabled) {
console.info( console.debug(
'devmodel# findOne=>', 'devmodel# findOne=>',
_class, _class,
query, query,
@ -102,7 +102,7 @@ class ModelClient implements Client {
): Promise<FindResult<T>> { ): Promise<FindResult<T>> {
const result = await this.client.findAll(_class, query, options) const result = await this.client.findAll(_class, query, options)
if (this.notifyEnabled) { if (this.notifyEnabled) {
console.info( console.debug(
'devmodel# findAll=>', 'devmodel# findAll=>',
_class, _class,
query, query,
@ -120,7 +120,7 @@ class ModelClient implements Client {
async tx (tx: Tx): Promise<TxResult> { async tx (tx: Tx): Promise<TxResult> {
const result = await this.client.tx(tx) const result = await this.client.tx(tx)
if (this.notifyEnabled) { if (this.notifyEnabled) {
console.info('devmodel# tx=>', tx, result, getMetadata(devmodel.metadata.DevModel)) console.debug('devmodel# tx=>', tx, result, getMetadata(devmodel.metadata.DevModel))
} }
transactions.push({ tx, result }) transactions.push({ tx, result })
if (transactions.length > 100) { if (transactions.length > 100) {
@ -134,7 +134,7 @@ class ModelClient implements Client {
} }
} }
export async function Hook (client: Client): Promise<Client> { export async function Hook (client: Client): Promise<Client> {
console.info('devmodel# Client HOOKED by DevModel') console.debug('devmodel# Client HOOKED by DevModel')
// Client is alive here, we could hook with some model extensions special for DevModel plugin. // Client is alive here, we could hook with some model extensions special for DevModel plugin.
const builder = new Builder() const builder = new Builder()

View File

@ -113,7 +113,7 @@
/> />
<div class="flex h-full"> <div class="flex h-full">
{#if visibileNav} {#if visibileNav}
<div class="antiPanel-component border-right filled indent aside"> <div class="antiPanel-component border-right filled indent aside inbox">
<div class="header"> <div class="header">
<span class="fs-title overflow-label"> <span class="fs-title overflow-label">
<Label label={notification.string.Inbox} /> <Label label={notification.string.Inbox} />
@ -154,4 +154,7 @@
justify-content: center; justify-content: center;
padding: 0 1.5rem; padding: 0 1.5rem;
} }
.inbox {
min-width: 20rem;
}
</style> </style>

View File

@ -32,7 +32,7 @@
navigate, navigate,
showPopup showPopup
} from '@hcengineering/ui' } from '@hcengineering/ui'
import { ContextMenu, UpDownNavigator } from '@hcengineering/view-resources' import { ContextMenu, DocNavLink, UpDownNavigator } from '@hcengineering/view-resources'
import { createEventDispatcher, onDestroy, onMount } from 'svelte' import { createEventDispatcher, onDestroy, onMount } from 'svelte'
import { generateIssueShortLink, getIssueId } from '../../../issues' import { generateIssueShortLink, getIssueId } from '../../../issues'
import tracker from '../../../plugin' import tracker from '../../../plugin'
@ -161,7 +161,11 @@
</svelte:fragment> </svelte:fragment>
<svelte:fragment slot="header"> <svelte:fragment slot="header">
<span class="fs-title select-text-i"> <span class="fs-title select-text-i">
{#if issueId}{issueId}{/if} {#if embedded}
<DocNavLink object={issue}>
{#if issueId}{issueId}{/if}
</DocNavLink>
{:else if issueId}{issueId}{/if}
</span> </span>
</svelte:fragment> </svelte:fragment>
<svelte:fragment slot="tools"> <svelte:fragment slot="tools">

View File

@ -27,7 +27,7 @@
export let deselect: boolean = false export let deselect: boolean = false
</script> </script>
{#if model.specials} {#if model?.specials}
<TreeNode icon={space?.icon ?? model.icon} title={space.name} actions={() => getActions(space)}> <TreeNode icon={space?.icon ?? model.icon} title={space.name} actions={() => getActions(space)}>
{#each model.specials as special} {#each model.specials as special}
<NavLink space={space._id} special={special.id}> <NavLink space={space._id} special={special.id}>