mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
TSK-1378: Qfix for exception (#3097)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
173d0fe625
commit
1c0d04132a
@ -58,7 +58,7 @@ class ModelClient implements Client {
|
||||
client.notify = (tx) => {
|
||||
this.notify?.(tx)
|
||||
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> {
|
||||
const result = await this.client.findOne(_class, query, options)
|
||||
if (this.notifyEnabled) {
|
||||
console.info(
|
||||
console.debug(
|
||||
'devmodel# findOne=>',
|
||||
_class,
|
||||
query,
|
||||
@ -102,7 +102,7 @@ class ModelClient implements Client {
|
||||
): Promise<FindResult<T>> {
|
||||
const result = await this.client.findAll(_class, query, options)
|
||||
if (this.notifyEnabled) {
|
||||
console.info(
|
||||
console.debug(
|
||||
'devmodel# findAll=>',
|
||||
_class,
|
||||
query,
|
||||
@ -120,7 +120,7 @@ class ModelClient implements Client {
|
||||
async tx (tx: Tx): Promise<TxResult> {
|
||||
const result = await this.client.tx(tx)
|
||||
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 })
|
||||
if (transactions.length > 100) {
|
||||
@ -134,7 +134,7 @@ class ModelClient implements 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.
|
||||
const builder = new Builder()
|
||||
|
@ -113,7 +113,7 @@
|
||||
/>
|
||||
<div class="flex h-full">
|
||||
{#if visibileNav}
|
||||
<div class="antiPanel-component border-right filled indent aside">
|
||||
<div class="antiPanel-component border-right filled indent aside inbox">
|
||||
<div class="header">
|
||||
<span class="fs-title overflow-label">
|
||||
<Label label={notification.string.Inbox} />
|
||||
@ -154,4 +154,7 @@
|
||||
justify-content: center;
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
.inbox {
|
||||
min-width: 20rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -32,7 +32,7 @@
|
||||
navigate,
|
||||
showPopup
|
||||
} 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 { generateIssueShortLink, getIssueId } from '../../../issues'
|
||||
import tracker from '../../../plugin'
|
||||
@ -161,7 +161,11 @@
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="header">
|
||||
<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>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="tools">
|
||||
|
@ -27,7 +27,7 @@
|
||||
export let deselect: boolean = false
|
||||
</script>
|
||||
|
||||
{#if model.specials}
|
||||
{#if model?.specials}
|
||||
<TreeNode icon={space?.icon ?? model.icon} title={space.name} actions={() => getActions(space)}>
|
||||
{#each model.specials as special}
|
||||
<NavLink space={space._id} special={special.id}>
|
||||
|
Loading…
Reference in New Issue
Block a user